How can I use stripe.js with jQuery.payment?

jQuery.payment expects the expiration to be in the same value, but stripe expects separate values ​​for the month and year. how do two libraries work together?

+4
source share
1 answer

Stripe.card.createToken can accept map data in an object in addition to accepting raw HTMLForm.

If you use a single expiry field, you can get the value from the form and then divide it by month and year for use in Stripe.js' exp_month and exp_year.

+1
source

All Articles