【问题标题】:Stripe Connect - link with localeStripe Connect - 与语言环境的链接
【发布时间】:2018-07-23 01:23:53
【问题描述】:

我正在使用 API 条带连接 OAuth 参考 (https://stripe.com/docs/connect/standard-accounts)

重定向用户的链接是: https://connect.stripe.com/oauth/authorize?response_type=code&client_id=CODE&scope=read_write

完美运行。登陆页面是:

如何翻译此页面? 我尝试在 url 中使用:?locale=fr 但不工作。 我在文档中找不到任何内容 谢谢

【问题讨论】:

  • 6 年后,我也在想同样的事情!你有没有得到这个答案?否则,我会尽快联系 Stripe。
  • 我也试过了。没有答案..
  • 我在 freenode 的#stripe 频道上得到了答案:“语言取决于所选国家”。没有办法设置。
  • 如果本地没有任何设置或 url 参数,我也搜索过,您需要从连接页面的页脚手动更改本地。

标签: api hyperlink stripe-payments translate


【解决方案1】:

您必须添加两个字母的国家/地区代码stripe_user[country] (docs link)。

两个字母的国家/地区代码(例如,US 或 CA)。

例如:

https://connect.stripe.com/oauth/authorize?response_type=code&client_id=...&scope=read_write&stripe_user[product_description]=...&stripe_user[email]=john@gmail.com&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

【讨论】:

  • 这会预填充用户的国家,而不是页面的区域设置
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-06-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多