#warhost_code

1 messages ¡ Page 1 of 1 (latest)

rough sageBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1312064858916655154

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

teal acorn
#

hi! hmm, I think if you handle the action then that's it and it progresses the state machine of the PaymentIntent to succeeded. Not sure off the top of my head though, can you share one of the pi_xxxs you tested with so I can check?

teal acorn
#

ok I tested this quickly and yes, after handleNextAction the PaymentIntent status becomes succeeded, so you can just show a success message at that point.

#

which doesn't seem to be accurate because the payment is not done yet (confirmed server side).
well you already confirmed on the backend before getting to this point. This is just doing a round trip to the frontend to complete 3D Secure which can only be done there.

After it's complete you can show a success message on the frontend, and the backend will get the usual payment_intent.payment_succeeded webhook to drive fulfilment (in case that surprises you, I'd note that this integration is not meant to avoid having to use webhooks(which can't really be avoided), it's meant to give you an extra step to check the payment details before processing the payment basically)

cerulean coral
#

I see. I'm trying your suggestion atm.

#

Yeah I'm using this integration in order to create my server side "order" only upon successful payment, and to avoid having to create it, wait for payment, then move it to some success state, and having to clean up abandoned ones.