save card to customer with Stripe.js -


how save card customer stripe.js?

i don't want change them @ point. want save credit card info stripe account can use later.

it seems i'd need use createtoken stipe.js. understanding 1 time use token. want save credit card info later use.

this seems similar question: stripe payment: save token , customer , make payment later token solution isn't clear. i'm not sure if means customer need save card=token , work fine.

i want save credit card info stripe account can use later.

then that's can do!

if you're passing token server-side code, need update server-side code retrieve customer , create card on customer record using token.

not knowing language you're using can't provide relevant sample code, stripe api reference has functional examples ruby, python, php, java, , node.js.

note if customer has outstanding invoices, card used next time attempt settle—so while adding card won't create charge itself, it's possible card may still billed.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -