#Зотов
1 messages · Page 1 of 1 (latest)
Hi) I create no paid order, but when click again for button I create another one
How u Can take from api previes order to paid ?
Yep developer
Okay then can you provide me a lot more information about exactly what is going on?
Otherwise I won't be able to help much
What you said above is quite vague
Okay so you basically want to stop creating Incomplete PaymentIntents
First, overall, there is no issue in having multiple PaymentIntents
Other than the clutter in the Dashboard
But if you don't want that to happen then you need to store the customer's session (for instance with a cookie) and thus if that customer clicks your "pay" button a second time you don't create a new PaymentIntent but instead just grab the client_secret associated with the initally created PaymentIntent and use that on your frontend with confirmCardPayment() so that you aren't actually creating a new PaymentIntent
Yep pretty much
Cool. Nice Thanks, have a nice day