#Briesma - prevent 3DS redirect

1 messages ยท Page 1 of 1 (latest)

cloud flame
#

Can you tell me a bit more about what you are using? Is this your own Custom webpage with Stripe Elements?

hasty mirage
cloud flame
hasty mirage
#

Okay. Is it possible to avoid this behaviour if we use the Card Element instead?

distant kiln
#

Hi ๐Ÿ‘‹ I'm stepping in for @cloud flame . You want to avoid even the modal 3DS verification?

hasty mirage
#

Not necessarily. As long as it doesn't require a redirect from my current place in the application, it's okay.

distant kiln
#

As @cloud flame mentioned above, the common implementation of 3DS authentication that the Payment Element uses renders the form within a modal so the user isn't redirected away from your app.

bright karma
#

const options = { elements, confirmParams: { return_url: "https://example.com", // Return URL where the customer should be redirected after the SetupIntent is confirmed. }, redirect: "if_required", // handle if no redirection. If redirection, we will have to load the correct wizard-step and open the Drawer before rendering }

So if I use thoses options, I have to configure "return_url" because it's a required field, but it will not be use ?

Should we implement a return url to deal with edge case ?

distant kiln
#

Because this tool is desined to handle payment methods that require redirection (e.g. afterplay_clearpay), we need to require this parameter. I would include it for edge cases where payment method issuers require a full redirect.

bright karma
#

If we use only credit card (north america), we should not have redirection ?

If in 99% of the time we dont redirect, I could simply redirect and show an alert with "Succed" or "Error" to deal with the 1% edgecase

distant kiln
#

We are seeing more NA banks starting to use 3DS authentication but that should be handled by the modal approach.

bright karma
#

Ok thanks a lot, you are very helpfull ๐Ÿ™‚

distant kiln
#

Sure thing, happy to help ๐Ÿ™‚