3 ms·
Is there a way I can dynamically change the data-amount, data-name, and data-description fields with Javascript depending on what the user clicks? I'm pictu
by tocomment 14y ago
Is there a way I can dynamically change the data-amount, data-name, and data-description fields with Javascript depending on what the user clicks?
I'm picturing the user clicking a checkbox for an add-on product without having to make a round-trip back to the server.
- pc 14y agoYeah, there's a full JavaScript API for setting these dynamically. Check out (no pun...) https://stripe.com/docs/checkout https://stripe.com/docs/checkout.