Create Card Or Subscription
How to save payment info for future usage
You will need to store and use cards on your backend server.
-
tipsi-stripe
will only generate token that will be used by backend to create card object. Use API to create token - Send it to your backend server where it can save it using Stripe API to create card
- Save response in your database and then you will be able to reuse saved card token to make payments. Add some description to help user to select this card in the future (last4, name).
- Add API on the backend side that will return list of your descriptions with ids
-
Use this id to get
CardToken
and use card token instead of one time token when performing payments
When you've saved the card on your backend you may use it to create subscriptions via Stripe API.
If you are using PaymentIntents
you can use instructions from
SCA
How to use ApplePay with recurring subscriptions https://support.stripe.com/questions/use-apple-pay-for-recurring-payments