#Slanfan-connect
1 messages · Page 1 of 1 (latest)
My test user just created an account and we are about to do onboarding but I can see the user has a Swedish flag
How did you create the account?
try { account = await stripe.accounts.create({ type: 'express', capabilities: { card_payments: { requested: true, }, transfers: { requested: true, } }, business_type: 'individual', business_profile: { name: ${playerDoc.name.first} ${playerDoc.name.last} @ Tolaria, product_description: 'Event Management', url: 'https://tolaria.app', support_email: playerDoc.email, }, individual: { email: playerDoc.email, first_name: playerDoc.name.first, last_name: playerDoc.name.last, metadata: { playerDocId: playerDoc.docId, playerUid: playerDoc.uid, }, }, metadata: { playerDocId: playerDoc.docId, playerUid: playerDoc.uid, } }) } catch (error) { console.log([ERROR] ${error.message}) resolve({ text: ERROR: Call to stripe returned with an error, ${error.message} }) }
so basically I call stripe.accounts.create(params)
You need to be passing in the country of the Account when you create it, otherwise it defaults to the platforms country
OK thanks. I'll try that.
@uneven ocean is the country an own property or does it need to be part of the individual?
It's top-level on the Accuont (see https://stripe.com/docs/api/accounts/create#create_account-country)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.