Alan
Alan

Reputation: 10145

Stripe Connect - link with locale

I am using API stripe Connect OAuth Reference (https://stripe.com/docs/connect/standard-accounts)

The link to redirect user is: https://connect.stripe.com/oauth/authorize?response_type=code&client_id=CODE&scope=read_write

It works perfectly. Landing page is : enter image description here

How can I translate this page? I have tried using in url: ?locale=fr but not working. I could not find anything in the documentation Thanks

Upvotes: 5

Views: 901

Answers (1)

Gianfranco P
Gianfranco P

Reputation: 10794

You have to add a two-letter country code stripe_user[country] (docs link).

Two-letter country code (e.g., US or CA).

For example:

https://connect.stripe.com/oauth/authorize?response_type=code&client_id=...&scope=read_write&stripe_user[product_description]=...&stripe_user[email][email protected]&stripe_user[url]=http://example.com/users/1234&stripe_user[first_name]=John&stripe_user[last_name]=Deere&stripe_user[business_name]=John%20Deere&stripe_user[country]=FR

Upvotes: 0

Related Questions