#adasli

1 messages ยท Page 1 of 1 (latest)

latent surgeBOT
brisk epoch
eager ember
#

The thing is that I'd prefer it not to redirect.

brisk epoch
#

In that case you can set redirect to if_required

eager ember
#

That's right. My question is what is the expected behaviour of the payment method card. Do they do full redirecets? Are there caveats?

latent surgeBOT
brisk epoch
#

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?

eager ember
#

Hmm, almost. This is the flow for our product:

We first store the payment method for the user:

  1. Create Setup Intent with usage off_session
  2. User enters details through Stripe Elements
  3. 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.

  1. Create a payment Intent
    off_session: true,
    confirm: true,
    capture_method: "manual",

  2. If the payment intent requires authentication i need to confirmPaymentIntent on the client.

  3. 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.

brisk epoch
#

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

eager ember
#

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?

hushed swallow
#

Hi ๐Ÿ‘‹

I'm jumping in as @brisk epoch had to go

#

And this behavior may be required if the card requires 3DS authentication.

eager ember
#

Hey ๐Ÿ‘‹

#

So the confirmPaymentIntent + guaranteed card payment method, may require a redirect?

hushed swallow
#

It is possible if the issuing bank requires 3DS authentication

eager ember
#

Wouldn't that happen in a modal/dialog?

hushed swallow
#

In general, yes. Redirects for card PMs are rare

eager ember
#

Ok, understand! Thanks a lot!