Thursday, 22 August 2013

Stripe Payment: Save token and customer and make payment later from token

Stripe Payment: Save token and customer and make payment later from token

Is it possible in stripe payment,
First we will validate credit card using stripe, then we generate token
and create customers. we will save token instead of credit card
information in database and later we will make payments from customers on
basis of token or customer instead of credit card information.
In javscript file how we handle stripeResponseHandler and function
stripeResponseHandler(status, response).
because we have already generate token using
Stripe.createToken({ number: cardNumber, cvc: cardCVC, exp_month:
$('#expiration-month').val(), exp_year: $('#expiration-year').val() },
stripeResponseHandler);
in payment step how we call stripeResponseHandler?

No comments:

Post a Comment