#nitewalker-j_paynow-action-required

1 messages ยท Page 1 of 1 (latest)

vale boneBOT
#

๐Ÿ‘‹ 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/1409558991289450577

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

grave goblet
#

What do you mean by expires exactly?

kind karma
#

https://support.stripe.com/questions/paynow-faq#:~:text=The customer has,customer to pay.

As mentioned here, the QR code does not last indefinitely.
If a customer tries to pay after it expires, it will fail.

So I'm trying to see if there is some sort of handling provided by Stripe SDK

vale boneBOT
kind karma
#

My system already has a PayNow payment integration, but with another provider.
Planning to migrate to another provider which Stripe is under consideration.

So I know there is an expiration but on Stripe's documentation is quite obscure.

grave goblet
#

I expect this will work by the payment intent reverting from requires_action to requires_payment_method after that expiry then, and you'd need to re-confirm the payment to get it back in the requires_action status (which should include a fresh QR code)

#

I do suggest testing this though

kind karma
#

So likely I will have to handle this edge case myself?

cunning bay
#

Hi ๐Ÿ‘‹

I'm stepping in as my colleague needs to go soon

#

I recommend you test this yourself, as my colleague suggested. We have a specific Stripe.js method for handling payments that have a status of requires_action. The handleNextAction function should take care of this for you

kind karma
#

Hmm alright... Thanks