我尝试将 paymentSheet 与 customFlow: true 一起使用,但是当我使用 customFlow 时,它显示不同的模式,默认情况下不显示卡和账单地址,这对用户来说非常混乱。 有没有办法保留原始的 paymentSheet,只需将按钮上的标签切换为“继续”,如文档页面所示?
我使用的代码如下
await initPaymentSheet({
merchantDisplayName: 'Cool brand',
paymentIntentClientSecret: paymentIntent,
returnURL: '/checkout/success',
defaultBillingDetails: {
name: 'Jane Doe',
},
applePay: {
merchantCountryCode: 'US',
},
googlePay: {
merchantCountryCode: 'US',
testEnv: true, // use test environment
},
customFlow: true,
})
不,这是不可能的——
customFlow
旨在用于两步流程,其中客户选择付款方式(或添加一种),并且您控制付款的完成(请参阅:docs),因此按钮的标签是“继续”。如果您使用常规流程,则当客户单击付款表中的“付款”按钮时,付款即完成,因此在这种情况下按钮的标签是“付款”。
简而言之,这些按钮标签是无法自定义的。