flutter-stripe / flutter_stripe

Flutter SDK for Stripe.
https://pub.dev/packages/flutter_stripe
930 stars 514 forks source link

Payment Element WEB save and retrieve customer payment methods #1886

Closed Andrea951112 closed 2 weeks ago

Andrea951112 commented 1 month ago

In payment element for web i would like to have to possibility of save and use saved payment methods from customer.

as described here: [https://docs.stripe.com/payments/save-during-payment?platform=web&ui=elements#enable-saving-the-payment-method-in-the-payment-element]

remonh87 commented 3 weeks ago

I will have a look coming week at it. I think we should be possible to add the customerSessionClientSecret to the options

Andrea951112 commented 3 weeks ago

thanks @remonh87. if possible could you also look at issue https://github.com/flutter-stripe/flutter_stripe/issues/1732

T-P-F commented 2 weeks ago

Isn't this already supported in main?

https://github.com/flutter-stripe/flutter_stripe/blob/main/packages/stripe_web/lib/src/widgets/payment_element.dart Line 18 etc...