【发布时间】:2017-10-30 05:22:35
【问题描述】:
我只需要一种付款方式(支付宝)。但我无法使用 Stripe Checkout(信用卡)禁用默认付款方式。当然,我读过documentation,但我不知道如何做到这一点。
这是我的代码。
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
});
谢谢!
【问题讨论】:
标签: javascript stripe-payments stripe.js