#AdhirajKinlekar

1 messages · Page 1 of 1 (latest)

warm relicBOT
lost drift
#

Hi there, sure you can use the same payment_intent secret to render the PaymentElement and prompt the user to try again.

wise siren
#

Hello Jack, where can I store this secret? Is it safe to store this in the order document? and what is the validity of the secret?

#

I want to show a list of orders including ones pending for payment and if the order is is pending for payment state i want to allow the user to make the payment

lost drift
#

It's not recommended to store payment_intent_secret. You can just retrieve it from backend and return to frontend as and when you need to render the PaymentElement

wise siren
#

Ok thank you for the response

wise siren
lost drift
#

By same order, do you mean the same PaymentIntent?

wise siren
#

no by same order, I mean order doc stored in database

lost drift
#

Is your order doc having an 1-to-1 relationship with PaymentIntent?