#Damo - (Red61)
1 messages · Page 1 of 1 (latest)
Hi there!
Can you clarify when in the payment flow you get each of the call to the return url?
Hi , sure
it's immediately after clicking the "complete authentication" option of the attached popup
So both call happened at roughly the same time? Are you sure it's Stripe making these two calls and not your own code?
yeah, pretty much immediately after one another,
fairly sure they're not coming from our code as they've got stripe specific Ids and keys appended as query params that we're not doing.
That's odd. Having a closer look...
From looking more closely at the network traffic during this process I've managed to dig out some more info.
it looks like there's a stripe hook that gets triggered from the subdocument.
this then returns an odd "return to merchant" link that seems to not actually be shown: but does trigger the first redirect to the return_url with the "source_redirect_slug" param appended.
then the main stripe document also hits the return_url with the expected "redirect_status=succeeded" param appended
Hey! Taking over for my colleague. Let me catch up.
Are you able to reproduce the issue in this sample ?
https://stripe.com/docs/payments/quickstart
Can you do the test for me please?
Hi, so within the quickstart I can see the subdocument hook with the "return to merchant"
response :
https://hooks.stripe.com/redirect/complete/src_1MvemwBAfHXJh6Di1dm7qVif?authenticated=true&client_secret=src_client_secret_5ClauTydehVSZD2BRUJ24Mwi&id=tdsrc_1MvemxBAfHXJh6Di25X5Zf4c&source_redirect_slug=test_YWNjdF8xSndwQ2xCQWZIWEpoNkRpLF9OaDJzelYwNDFRcUNoMWduQkxIcUZOMVZWTW16YmVa0100jMbeN9ys&status=succeeded
however I am only seeing the return URL being hit once with the expected "redirect_status=succeeded" param.
What is the difference between the quickstart and your sample project? not sure I'm following, ‹ere you able to reproduce in the quickstart ?
I was not able to trigger the full double redirect in the sample project no,
It seems that my project is somehow automatically triggering the provided "return to merchant" link in the subdocument.
is there any way to suppress that page from being given at all? (since the main doc hits the return_url anyway)
It seems that my project is somehow automatically triggering the provided "return to merchant" link in the subdocument.
Probably yes, you can simply download that sample and work on it in your integration.
is there any way to suppress that page from being given at all? (since the main doc hits the return_url anyway)
You mean the redirection ?
You can set redirect=if_reuqired when confirming the Payment:
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
okay, i'll give that a shot and see how I get on.
Thanks
so, unfortunately the "redirect=if_required" param only suppresses the main form redurect to the return_url. not the return of the "return to merchant" link
I tired this and couldn't reproduce