#amirny2205_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
đ 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/1212662108227895317
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
â˛ď¸ 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. Thank you for your patience!
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.
- amirny2205_docs, 38 minutes ago, 7 messages
- amirny2205_api, 14 hours ago, 14 messages
- amirny2205_error, 1 day ago, 24 messages
checkStatus() here is meant to check the status after customer is redirected from completing the payment with payment_intent_client_secret query parameter attached.
When the checkout page is initialised by yourself, payment_intent_client_secret won't be present and the status won't be checked at this point
why would I redirect customer to the same page? I think the status should update without any redirection
and I will redirect my customer to the previous page where he chose items to buy
This is just an example code. Your system can redirect to any page in your website
checkStatus() is not needed when initialising payment element
what is a basic flow concerning using check status?
The customer executes payment, then according to that code he can be redirected to another page, where he will see status of the payment. I'm expecting the following: first, show that payment has succeeded, then wait for 5 seconds, then redirect. Am I understanding it wrong? thank you