#Guillaume

1 messages · Page 1 of 1 (latest)

main mangoBOT
modest slate
#

redirect=if_required only prevents redirect for non-redirect payment methods after completing payment

stiff cloud
#

In your docs about QR code payments, you say: Alternatively, prevent the automatic redirect to your return_url by passing the advanced optional parameter redirect=if_required, which prevents the redirect when closing a QR Code modal.

#

I think this is a problem for me. If a user closes the QR modal, I would like it to just close and keep the user on the checkout page where they can select another payment method, instead of redirecting to my return_url (where it will show that the payment is pending).

#

But if I use redirect=if_required, then I have to handle non redirect-based successes myself, which I would like to avoid...

#

redirect on modal close should be a separate option IMO.

#

I don't even see a use case where I would want to redirect them on modal close.

modest slate
#

Which QR code payment method are you referring here?

steady vector
modest slate
#

We don't have a list of non-redirect payment methods as it's scenario based. For example, card without 3DS authentication will be non-redirect whereas card with 3DS will be redirect

#

if redirect=if_required is used, then both redirect and non-redirect flows should be handled

steady vector
#

I see! Thanks

#

How can I find out what redirects and what doesn't?

#

If I only support card, Google pay and Apple pay, none of them redirect

#

There is technically no possibility of redirect then?

stiff cloud
#

@modest slate I'm referring to Wechat Pay, and the new (beta) one...

modest slate
#

I'm afraid we don't provide a list of redirect and non-redirect scenarios

#

If I only support card, Google pay and Apple pay, none of them redirect
Card with 3DS authentication can be a redirect

stiff cloud
#

Can you please look at my original question when you get a chance? 🙂 (thread got hijacked)

modest slate
#

Could you share the doc link where you get the above quote from?

In general, redirect=if_required is not configurable by payment methods or specifically to closing QR code. Once redirect=if_required is set, it will be applied to successful redirect payment method and non-redirect payment method will not be redirect. Handling non-redirect payment methods is needed

modest slate
#

Thanks for sharing!

#

redirect=if_required can't be applied only to closing QR code modal. With redirect=if_required, additional handling of non-redirect payment method will be needed

stiff cloud
#

yeah, that's what I understood. And I explained that this is a problem. Why does closing a modal trigger a redirect at all??

modest slate
#

When the customer closes the modal, it's not considered as an error so it will trigger a redirect flow. That's a good feedback and I'll pass it to the team