#aham1141_api

1 messages ¡ Page 1 of 1 (latest)

slow patioBOT
#

👋 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/1341495213583106168

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

white swan
exotic grail
#

The tokenization rquest via Curl (according to those docs) looks like:

#

curl https://api.stripe.com/v1/tokens
-u ""
-H "Stripe-Account: {{CONNECTED_ACCOUNT_ID}}"
-d "bank_account[payment_method]"="{{PAYMENT_METHOD_ID}}"
-d customer="{{CUSTOMER_ID}}"

white swan
#

Ah I see I see.

#

Let me take a look

white swan
#

Can you try saving the payment method for only outbound flow direction?

exotic grail
#

Will do. Give me a couple of minutes

white swan
#

Oh

#

you're supposed to create SetupIntent on the platform account

exotic grail
#

Should the customer also be created on the platform account?

white swan
#

I think so.

The flow is
1/ Create and confirm SetupIntent on the platform (without Stripe-Account header)
2/ Create a token on Connected account (using Stripe-Account header)
3/ Use the token to create External Account

exotic grail
#

Roger that. That's incredibly helpful. I will run off and make those changes. Thank you!

white swan
#

NP! Sorry I missed it