#hendek_api

1 messages · Page 1 of 1 (latest)

gritty quailBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1343866755516465154

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hushed glade
#

i saw the new directive dsp2 but i hope there is a way to Work around the problem as developer ?

ancient gale
#

Hi! Unfortunately, France requires this hence it would be best to test it as per the requirements of live mode.

gritty quailBOT
floral saffron
#

👋 taking over for my colleague. Any reason why you're creating Custom Accounts instead of Express?

hushed glade
#

what a shitty country I hope that this rule concerns all countries that want to create custom accounts for French users, if this is not the case we must fire them all 😢

floral saffron
#

@hushed glade please mind your language

hushed glade
hushed glade
floral saffron
#

the speed is not the issue here

#

it's more about the onboarding process

#

I suggest using embedded onboarding

hushed glade
#

hmm yes i see , With the aim of minimizing user effort and experience, I had in mind a workflow similar to vinted where
( any user can create a product) without have any connect integration until he want recover his money after the sell
do you think its possible in france with stripe or you have a better idéa for that usecase ?

floral saffron
#

I don't think when you create the Stripe Account for your user is the issue but rather how you create it

hushed glade
#

Some time ago, I knew it was possible to create a custom account with a minimum of information, just enough to accept payments.

floral saffron
#

it's still the case

#

but you've created a custom account that has the card_payments capability requested.

    card_payments: {
      requested: "true",
    },
#

try to remove that

hushed glade
#

maybe i dont have other choice to integrate a front for that case

floral saffron
hushed glade
#

req_cyXmyujFMdpA1Q

floral saffron
#

you didn't pass ```capabilities:{ transfers: {
requested: "true",
},

#

I think you should pass card_payments: { requested: false,}, transfers: {requested: true}

hushed glade
floral saffron
#

please share the request ID?

hushed glade
#

req_xylzSSf5vzO5km

floral saffron
#

you can easily create an account token using Stripe.js

hushed glade
#

const stripe = Stripe('pk_test_51LgzJGBtbjTrf6ivglZGukxetYwG9gO3GGyThueFjkgeFG4tUQfvyDV02DLB95WHfw1EkebqBvnKj3oLihiiQdEX00qcrbh70t');
const myForm = document.querySelector('.my-form');
myForm.addEventListener('submit', handleForm);

async function handleForm(event) {
event.preventDefault();

const accountResult = await stripe.createToken('account', {
business_type: 'company',
company: {
name: document.querySelector('.inp-company-name').value,
address: {
line1: document.querySelector('.inp-company-street-address1').value,
city: document.querySelector('.inp-company-city').value,
state: document.querySelector('.inp-company-state').value,
postal_code: document.querySelector('.inp-company-zip').value,
},
},
tos_shown_and_accepted: true,
});
yepp that what i was looking$

#

So i have to call the api route for stripe.createToken with some information and after i get the token i pass it to account_token: '{{ACCOUNT_TOKEN_ID}}',

floral saffron
#

you can pass hardcoded values

hushed glade
#

yes

#

u right

floral saffron
#

when you get the token from the frontend you can use it to create the account in the backend

hushed glade
#

For "testing" i can also use this route from my server right ?

#

i just need to retrieve the url associated to this

#

bc i dont installed the package stripe js

#

my connection is so low ^^

#

anyway @floral saffron thanks you for your patience i have to go im pretty sure i can fix the probleme for the moment thanks you

floral saffron
hushed glade
#

yep unfortunatly :/

floral saffron
#

using your publishable key