#wilem_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247916994402058261
đ Have more to share? Add details, code, screenshots, videos, etc. below.
When you call that code, would window.location.origin also resolve to a URL on your site?
Have you checked if the browser goes to that /confirmation URL but then that URL redirects to your home page? That is common behavior for unrecognized URLs, so I could see that being a potential explanation
ok so i test in slow 3G to see and it goes to the confirmation page, the page appear and then it redirect to the home page by himself
Gotcha, so it looks like Stripe is redirecting correctly at least?
yes
i replicate the bug on staging, when i try with the 3D secure i also have the redirect, but when I test with the regular test card it works fine
do you have an idea why ?
I don't fully understand what you are describing. Can you go in to more detail about what happens when the page works and what issue the redirect is casuing now?
When i do my checkout flow on staging, and i arrived to the step where i have to put my credit card info i try with the test card that activate 3D secure on my test environment and i had the same issue as i have in production which is the redirect to the home page.
When i try with the regular test credit card 4242 4242 4242 4242 it works fine and i don't have the redirect
I thought that you found that the redirect issue was that your confirmation page was immediately redirecting. Is that not the case?
If you want to avoid a full page redirect for 3DS, you can pass redirect: 'if_required' when confirming your payment intent. Keep in mind that some payment methods other than cards do require a redirect so you may need to handle this anyways depending on the payment methods that you support https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect