我只需要一种付款方法(AliPay)。但我不能禁用默认支付方法与条纹结账(信用卡)。当然,我读过文档,但我不知道如何做到这一点。
这是我的密码。
var handler = StripeCheckout.configure({
key: 'public_key',
alipay: true,
locale: false,
currency: "usd",
token: function(token) {
// Use the token to create the charge with a server-side script.
// You can access the token ID with `token.id`
}
});
handler.open({
name: 'example.com',
description: 'AliPay Payment',
amount: 10000
});谢谢!
发布于 2017-10-29 21:22:35
不可能禁用签出的默认(卡)区域。
如果您希望您的支付表单具有更好的可定制性,我将查看Stripe.js/Element和Sources。您可以使用这些源生成AliPay源,将用户重定向到AliPay以授权支付,然后将它们返回到您的站点https://stripe.com/docs/sources/alipay。
https://stackoverflow.com/questions/47004122
复制相似问题