#aham1141_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Hello
The request body seems odd - https://dashboard.stripe.com/test/logs/req_dSR7bHgrVfoUHz
bank_account: {
payment_method: "pm_1QtwWOHD7NeqvrPZOzvgSD2W",
},
customer: "cus_xxx",
}```
If it's helpful I am following the docs here: https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api
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}}"
Can you try saving the payment method for only outbound flow direction?
Will do. Give me a couple of minutes
That returns the same error: https://dashboard.stripe.com/acct_1QtwSlHD7NeqvrPZ/test/logs/req_Qz29jChmJinKlV?t=1739909377
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Oh
you're supposed to create SetupIntent on the platform account
You're currently creating SetupIntent on the connected account - https://dashboard.stripe.com/test/logs/req_p7H8XH6cvRrdOZ
Should the customer also be created on the platform account?
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
Roger that. That's incredibly helpful. I will run off and make those changes. Thank you!
NP! Sorry I missed it