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.
source
share