#Toye
1 messages · Page 1 of 1 (latest)
Out of curiosity why are you using oauth?
That's an older flow that's not generally recommended unless you have to use it
I am using oauth because of the way it redirects me to the stripe page immediately on clicking the oauth link
so the user have the ability to create everything about the account after been redirected to the stripe page
But with Account Links you basically get that same behavior: https://stripe.com/docs/connect/express-accounts
They just get directed to the Stripe-hosted link and can input all required info
And you can select service agreement on account creation: https://stripe.com/docs/connect/service-agreement-types#choosing-type-with-api
Would recommend doing it that way
Okay, thanks @tired hatch I would try this method and let you know if this solves my issue.
Cool no problem
Hi @tired hatch while trying to use api I got this error
{
"error": {
"message": "The recipient ToS agreement is not supported for platforms in US creating accounts in US.",
"param": "tos_acceptance[service_agreement]",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_WSfvEDAZWb4osB?t=1683315334",
"type": "invalid_request_error"
}
}
This were the parameters passed:
type: express,
email: xxxx
business_type: individual,
capabilities[transfers][requested]: true,
tos_acceptance[service_agreement]: recipient
So I guess it is assuming that the account is located in usa, so this is forcing me to send a country parameter with it. do you think I have another way to achieve this with this api or I just have to send the country parameter along with it?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You'll need to send the country to create the account if it's going to not be US: 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.