#AdhirajKinlekar
1 messages · Page 1 of 1 (latest)
Hi there, sure you can use the same payment_intent secret to render the PaymentElement and prompt the user to try again.
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
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
Ok thank you for the response
Just another doubt, so do mean we can create multiple payment_intent_secret for the same order doc?
By same order, do you mean the same PaymentIntent?
no by same order, I mean order doc stored in database
Is your order doc having an 1-to-1 relationship with PaymentIntent?