#geo_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1351931992954114171
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
What url is it redirecting to?
I bet it's because you have the /#/ in the route. Normally # denotes a link to a specific section in a url. I recommend changing the route to just http://localhost:3333/order-confirmation if possible
But the query params being appended at the end is expected
if I do remove the #, how is the url going to look like http://localhost:3333/order-confirmation ?payement_intent...?
Yeah
is there a way to not pass the url params back?
I see, let me try that.
Is there a fail redirect option?
It'll still redirect to return_url
That's why you should check payment status on that page
When the customer is redirected back to your site, you can use the payment_intent_client_secret to query for the PaymentIntent and display the transaction status to your customer.
In that return url you have payment_intent_client_secret appended
You can use that to query status
got it
is there a work around if I can't remove the # from the url? It seems prod url uses it
No it'd be a feedback request
My guess is the url parser being used by us or affirm treats # as a link to a section
So it strips everything out after the #
You really shouldn't use # in a route
yep, not my choice to do so. I'll pass this along to the team. Thank you!
Actually one thing you can try
Try %23 instead of #
in the return_url
That's the encoded value
that is a great idea!!!!