我使用 Stripe 结账会话为我的应用程序创建结账页面。所有产品价格默认货币为“USD”。但我想根据美国海外客户的区域设置浏览器转移到多货币。
示例:产品价格为50 'USD'
如果我住在德国,那么结帐应该是德国所有支持 Stripe 的银行业务,金额应转换为42.33 欧元
stripeServer.checkout.sessions.create({
customer_email: email,
line_items: [
{
price: 'price_id'
}
],
payment_method_types: mode === STRIPE.PAYMENT_TYPE.SUBSCRIPTION ? ['card'] : ['card', 'alipay'],
mode,
billing_address_collection: 'auto',
locale: location || 'auto',
Run Code Online (Sandbox Code Playgroud)
但现在,它只是根据位置转移语言,价格仍然只是“美元”而不是“欧元”
我已阅读 Stripe 的文档,但仅支持付款以将利润计费到您的账户银行https://stripe.com/docs/payouts
因此,现在如果印度客户或新加坡客户想要付款,我需要使用他们所在国家/地区的货币创建一个新的价格 ID。我们对此有其他解决方案吗?
感谢您对我的建议和支持