#Зотов

1 messages · Page 1 of 1 (latest)

tranquil sirenBOT
raw berry
#

Hello

#

How can I help?

marsh shore
#

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 ?

raw berry
#

Are you a developer?

#

Or are you using a third party here?

marsh shore
#

Yep developer

raw berry
#

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

marsh shore
#

Ok moment

raw berry
#

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

marsh shore
raw berry
#

Yep pretty much

marsh shore
#

Cool. Nice Thanks, have a nice day