#adasli
1 messages ยท Page 1 of 1 (latest)
Hello, there is a redirect param that you can set to always to make sure card payments redirect as well https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
The thing is that I'd prefer it not to redirect.
In that case you can set redirect to if_required
That's right. My question is what is the expected behaviour of the payment method card. Do they do full redirecets? Are there caveats?
If you set redirect to if_required the collection of card number and 3DS will always happen on your page. If redirect is if_required I believe 3DS would be a full page redirect but would recommend testing that in test mode to confirm
Is that the angle that you are getting at with redirects? If not can you give me a bit more detail about what you are figuring out?
Hmm, almost. This is the flow for our product:
We first store the payment method for the user:
- Create Setup Intent with usage off_session
- User enters details through Stripe Elements
- Confirm the Setup Intent on client side with redirect=always. I do this to make the flow the same and simpler for implementation and testing.
The next step in the funnel, involves no "payment" but we only put a hold on the money for 7 days.
-
Create a payment Intent
off_session: true,
confirm: true,
capture_method: "manual", -
If the payment intent requires authentication i need to confirmPaymentIntent on the client.
-
Confirm the Payment Intent. This is where my question lies. Will the confirmPayment on the client redirect if i can assure that the customer only uses 'card'.
The reason I'm asking is that, if i need to redirect i need to store the state of the very complex form on the purchase page. That's of course doable, but would be easier if i could just assume that they wont be redirected.
Apologies for missing your followup for a bit. Setting redirect to if_required is the only way to keep the user on your page for card payments. Setting redirect to always means that Stripe.js will redirect after any payment succeeds, including card payments
If you want every other payment method except cards to redirect, you can listen for the change event to see whether the customer has chosen a card PM or not and choose your redirect value based on that. Otherwise redirects will behave as described before https://stripe.com/docs/js/element/events/on_change
Hmm. Not sure if I getting my question through here. Let's me retry with a more precise question:
Will the stripe.confirmPaymentIntent + redirect=if_required, ever redirect to another page, if I make sure the payment method is card?
Hi ๐
I'm jumping in as @brisk epoch had to go
And this behavior may be required if the card requires 3DS authentication.
Hey ๐
So the confirmPaymentIntent + guaranteed card payment method, may require a redirect?
It is possible if the issuing bank requires 3DS authentication
Wouldn't that happen in a modal/dialog?
In general, yes. Redirects for card PMs are rare
Ok, understand! Thanks a lot!