capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 74 forks source link

Save and Reuse #132

Closed supportreq closed 2 years ago

supportreq commented 2 years ago

Is your feature request related to a problem? Please describe. In the Ionic-Stripe is there a way to save and reuse the card. This will allow the user to just confirm his CVV number and be able to make the payment using the stored Card.

Stripe official documentation has option for React Native but not for Ionic

https://stripe.com/docs/payments/save-and-reuse?platform=react-native&ui=payment-sheet

Please advice.

ciccilleju commented 2 years ago

You can do it. As long as I remember I call 2 functions: one for reading if the customer has already made a payment with stripe and if has a default card (so he has a stripe token stored in the DB) and the other one for adding a card.

this is an example with Ionic I have made years ago

image image image

rdlabo commented 2 years ago

@supportreq You can use setupIntent in PaymentSheet or PaymentFlow.

rdlabo commented 2 years ago

Is this issue resolved? This don't has any update, so will close. If be update, please re-open. Thanks.

rdlabo commented 2 years ago

@supportreq Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022. https://github.com/capacitor-community/stripe/issues/145 Thanks.