1
votes

I have got a stripe token from stripe js, Now I want to charge the customer. How do I send the billing address along with the stripe token for charging. My objective is to validate zip code and address_line1 which I have enabled at the stripe dashboard.

Note:- I can send the billing info without using a stripe token, by using the card details entered. I want to do it using the token received. Is it possible?

1

1 Answers

-1
votes

The best solution is to send the billing address details when creating the token with Stripe.js This is covered in the createToken() documentation where it lists all the fields you can provide.

Otherwise, you would save the card on a customer first and then use the Update Card API on the server to provide the billing address.