jquery.payment does split the date. I found the code by accident since it's not documented.
Example code I use:
$('#payment-form').submit(function(e) {
expiration = $('.cc-exp').payment('cardExpiryVal');
Stripe.card.createToken({
number: $('.cc-number').val(),
cvc: $('.cc-cvc').val(),
exp_month: (expiration.month || 0),
exp_year: (expiration.year || 0)
}, stripeResponseHandler);
return false;
});
--
You received this message because you are subscribed to a topic in the Google Groups "Stripe API Discussion" group.