如何更改 Stripe Pop-up 中 Pay Button 的颜色?

How to change color of Pay Button in Stripe Pop-up?

我在我的潜在客户页面中使用 Stripe 支付方式,效果很好。我只想更改支付按钮的颜色,如附图所示。

这是用于显示弹出窗口的代码

<script>
    var handler = StripeCheckout.configure({
        key: '[KEY]',
        image: 'https://www.emotionacademy.com.au/images/emotion-academy-logo.png',
        locale: 'auto',
        token: function(token) {
            $( "#stripeToken" ).val( token.id);
            $( "#stripeEmail" ).val( token.email);
            $( "#paymentForm" ).submit();
        }
    });

        $( ".btn-price-table" ).click(function(event) {
            var price = $(this).closest('.pricing-table').find('.price span').text()*100;
            var title = $(this).closest('.pricing-table').find('.pricing-title').text().toUpperCase();

            handler.open({
                name: title,
                description: '',
                zipCode: true,
                currency: 'aud',
                amount: price
            });
            event.preventDefault();
        });
</script>

很遗憾,你不能。 Checkout runs into its own secure iframe, and at this time there is no configuration option自定义按钮的颜色。