#vdoulcier
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
- Have you tried it? Is it working?
- No, if you use Stripe Elements, it will take care of it for you.
- No, it's always displayed in the modal. What's your concern with the returnUrl exactly?
Hi!
Thank's for your answer.
-
I haven't tested it yet, just reading the documentation. Is it the right way to force 3DS? Or maybe the default configuration will always force 3DS when available?
-
Ok so with Elements, I don't have to care about 3DS redirection, perfect!
-
If 3DS is always displayed in a modal (when available), I don't understand in which case the
confirmParams.returnUrlis useful? Maybe it's not applicable forcardsbut only for other payment methods that requires additional configuration?
- Yes, that's the parameter you're looking for, but I would recommend you to try building a simple integration at the same time you're reading the docs so you can see it in action. It's much more effective.
- It will still redirect you after a successful payment, unless you set
redirect: if_required: https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
-
OK
-
It's for a
setup_intentwithout payment, so the 3DS will always be displayed via Elements, I don't have to care aboutnext_actionsand that's it, no?
Sorry, that was for point (3)
- It will still redirect you after a successful authorization, unless you set
redirect: if_required: https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
Oh ok, so If I don't configure this URL, it will stay on the origin page? As I will never do payments?
I just want to stay on the same page, and refresh the content to display status.
redirect_url is required.
But you can set the redirect: if_required parameter and it will only redirect you to return_url for specific payment method types.
Ok perfect, a big thank's Vanya, fully clear! Will check that. Have a nice day!