0

I need only one Payment Method (AliPay). But I can't disable default payment method with Stripe Checkout (Credit Card). Of course, I read documentation, but I don't have any idea how I can make that.

This is My code.

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
});

Thanks!

4

1 回答 1

0

无法禁用 Checkout 的默认(卡片)区域。

如果您正在寻找更好的付款方式可定制性,我会查看 Stripe.js/Elements 和 Sources API。您可以使用 Sources 生成支付宝来源,将用户重定向到支付宝以授权付款,然后将其返回到您的网站,https://stripe.com/docs/sources/alipay

于 2017-10-29T21:22:35.720 回答