#Alan Tse
1 messages ยท Page 1 of 1 (latest)
Once the connected account completes the onboarding, country [0] will be present in account.updated event. Alternatively, you can retrieve the account information using Account Retrieval API [1] that will also return country information.
You can then store the country of a connected in your database, then use it in payment request button.
[0] https://stripe.com/docs/api/accounts/object#account_object-country
[1] https://stripe.com/docs/api/accounts/retrieve
thanks let me try
https://stripe.com/docs/connect/oauth-standard-accounts I 'm using oauth mode now, and there doesn't seem to be an account update event
Oauth flow doesn't support account.* event and it's only applicable to Accounts API flow: https://stripe.com/docs/connect/standard-accounts
So we can only get countrycode of the stripe account by [1] https://stripe.com/docs/api/accounts/retrieve ?
Or I can put in a fixed value, like US ๐
Is that feasible?
Do you manage to retrieve country code using account retrieval API?
it works i can get the countrycode.
cuz if i need to add a retrieve process now, maybe i need to do some changes of my code realization process
, so i want to use fixed values ๐
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
hi ynnoj , My question is, can countrycode be set to a fixed value in paymentrequest?
e.g. us
No, it needs to equal the country code of the Stripe account you're initialising the Payment Request API for. What kind of Connect payments are you processing?
If direct charges, then this would be the country code of the connected account. Otherwise you can use the platform country code
OK thx alot