使用https://checkout.stripe.com/checkout.js时是否可以更改按钮文字...这是我的代码。我想填充" panelLabel"使用我的数据价格属性和"描述"使用我的数据描述属性。感谢。
<button data-price="Pay $5.00" data-desc="My description" id="stripe-button>Pay $5.00</>
document.getElementById('stripe-button').addEventListener('click', function(e) {
handler.open();
e.preventDefault();
});
var handler = StripeCheckout.configure({
key: "xxxxxx",
image: "{{ asset('assets/public/img/logo.png') }}",
name: "Create Your Subscription",
description: "CUSTOM DESCRIPTION GOES HERE",
panelLabel: "CUSTOM AMOUNT GOES HERE",
locale: 'auto'
});