#shpatak

1 messages · Page 1 of 1 (latest)

jolly brambleBOT
uncut verge
#

When user Clicks pay in my application, I generate new PaymentIntent:

#

let's say he fills only card information and then closes the application

#

then he opens the application again and Clicks the pay button again

#

Is there a way to show him the information he filled before?

#

Right now, I am saving the PaymentIntent Id in database, and when user clicks second time - I am passing that very PaymentIntentId instead of creating new one (only ephemeralKey.secret is created each time )

fluid cypress
#

Hi, jus confirming that you're asking if the card information collected can be saved so when the customer comes bask, it displays what they've already filled out?

uncut verge
#

exactly

fluid cypress
#

No there is not a way to save this information like you described.

uncut verge
#

Okay

#

Is there advantage of saving the PaymentIntent in database and put it each time user tries to create the same payment intent or should I create new one each time?

fluid cypress
#

I recommend that you just the one already created so it does not overwhelm you a ton of object ids.

uncut verge
#

Okay!

#

Thanks for fast response!

#

Have a great day!