#Zone23-flutter

1 messages · Page 1 of 1 (latest)

dark warren
#

Although I think the best place to ask is creating a Github issue on flutter repo, but let me try to find some of their example

dreamy river
#

I will take a look at that, and i appreciate you seeing if you can find anything. I spent a couple hours the other day trying to find information that was up to date and there was a lot of info but nothing for the new flutter_stripe version since null-safety. I'll ask on GitHub if you can't find something.

dark warren
#

About the screenshot you shared later on the channel

#

I see you are calling PaymentIntent creation API from flutter?

#

That's not how it suppose to be. PaymentIntent should be created from server, and flutter as a client should call server to get the payment_intent_secret

dreamy river
#

Yea, that's not permanent. I have the real code deployed to firebase functions but I was using that class specifically to figure out how to save a card for later use.

#

(to prevent having to redeploy functions to firebase every time I tested another way of saving card)

dark warren
#

I believe if you create a Customer and pass it into the PaymentIntent creation call, after PaymentSheet is displayed and paid, that Card will be saved to that Customer object

#

next time you open the PaymentSheet, with PaymentIntent Secret from the same customer, it will automatically display the previous used

#

like this