#_desa
1 messages · Page 1 of 1 (latest)
Can you share an example account id, or a request to create an account?
sure - sec
This "locked country" behaviour is typically when you try to override the capabilities for an express account without specifying a country
In which case the acount is created using your platform country
So to fix this, you should either change the default capabilities in your express settings for the relevant countries, or if you do need to override capabilities then you should also specify the country
they're toggled on already- us and philippines
am i missing something specific here
That it not an account creation request, but an onboarding account link
Seeing if i can get it from there, but can you look at your request logs here: https://dashboard.stripe.com/test/logs/
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
For the account creation request id like req_123
req_xQ7QILuobnmphC
thats link i guess
req_FNTAVPzE8PMNoT
there is the initial account request
Here you're specifying country=US : https://dashboard.stripe.com/logs/req_FNTAVPzE8PMNoT
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So I would expect this to be locked to US, right?
fair enough lol
can i pass an array of supported countries?
you're totally right
admin_user = current_admin_user
if admin_user.stripe_account_id.nil?
account = Stripe::Account.create(
type: 'custom',
country: 'US',
email: admin_user.authentication.email,
requested_capabilities: ['card_payments', 'transfers']
)
admin_user.update(stripe_account_id: account.id)
else
account = Stripe::Account.retrieve(admin_user.stripe_account_id)
end
account_link = Stripe::AccountLink.create(
account: account.id,
refresh_url: "#{ENV.fetch('ADMIN_HOST_DOMAIN')}/account/edit",
return_url: "#{ENV.fetch('ADMIN_HOST_DOMAIN')}/account/edit",
type: 'account_onboarding'
)
render json: account_link, status: :ok
end```
here is our code here
No, you either specify the country or omit it, but this is custom so the case i mentioned about express accounts doesnt apply
if i omit it can they then self specify?
You can specify the request_capabilities in the creation request as needed for your business
yeah, i have that here: requested_capabilities: ['card_payments', 'transfers']
Sure, then you can omit the country and let the user select this during onboarding