Javascript Stripe.configure()更改按钮&;动态描述文本
使用…时是否可以更改按钮文本。。。这是我的密码。我想用我的数据价格属性填充“panelLabel”,用我的数据描述属性填充“description”。谢谢Javascript Stripe.configure()更改按钮&;动态描述文本,javascript,jquery,stripe-payments,Javascript,Jquery,Stripe Payments,使用…时是否可以更改按钮文本。。。这是我的密码。我想用我的数据价格属性填充“panelLabel”,用我的数据描述属性填充“description”。谢谢 <button data-price="Pay $5.00" data-desc="My description" id="stripe-button>Pay $5.00</> document.getElementById('stripe-button').addEventListener('click', fun
<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'
});