#Briesma - prevent 3DS redirect
1 messages ยท Page 1 of 1 (latest)
Can you tell me a bit more about what you are using? Is this your own Custom webpage with Stripe Elements?
Yes. We are including Stripe elements within a MUI Drawer (https://mui.com/components/drawers/) component.
Is this the Payment Element then? Unfortunately you can only set redirects to happen if_required so they still can happen but with 3DS specifically I think it will still be a modal https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
Okay. Is it possible to avoid this behaviour if we use the Card Element instead?
Hi ๐ I'm stepping in for @cloud flame . You want to avoid even the modal 3DS verification?
Not necessarily. As long as it doesn't require a redirect from my current place in the application, it's okay.
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.
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 ?
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.
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
We are seeing more NA banks starting to use 3DS authentication but that should be handled by the modal approach.
Ok thanks a lot, you are very helpfull ๐
Sure thing, happy to help ๐