#newt-setupintent-3ds

1 messages ยท Page 1 of 1 (latest)

paper dock
#

Yes

#

that's why we usually discourage doing SetupIntent right before a PaymentIntent

topaz totem
#

We are using Stripe Connect and we want to apply special discounts based on CC brand. So, we are using a setupintent for capturing the CC and a Payment intent with an special application fee based on CC brand for capturing the payment.

#

So, in our case, is there a way around using a SetupIntent right before a Payment Intent?

paper dock
#

I don't get what you said, but let me reframe it

#

You can't use PaymentIntent, because you want to change the underlying amount after you know the card brand/whatever and before the real 3DS/confirmation

topaz totem
#

We can't use PaymentIntent, because we want to change the underlying application fee based on CC information.

#

So, we need the CC information before we can create / process the Payment Intent.

paper dock
#

you just said what I said right?

#

Sorry for being nitpicky, it's really important

topaz totem
#

No worries

paper dock
#

like is my summary your exact problem?

topaz totem
#

the same, but without the 3DS part

paper dock
#

cool so we have a feature in beta that is exactly what you need

#

looking for the docs

topaz totem
#

Oh

#

interesting

#

๐Ÿ™‚

topaz totem
#

Does it require Payment Element?

paper dock
#

I don't think so, though PaymentElement is drastically better so you should absolutely support it :p

topaz totem
#

We would love to

paper dock
#

Like really it doesn't make sense if you don't use PaymentElement

topaz totem
#

but we had a problem with it

paper dock
#

If you don't use PaymentElement all you have to do is first create the PaymentMethod

#

so there's no reason to do what you do in that world

topaz totem
#

We are using the Card Element

#

not the Payment Element

paper dock
#

Sorry, always so hard to do everything in parallel with little info

#

1/ If you use PaymentElement, you have absolutely no control over the payment method used for confirmation because Stripe collects it and confirms at the same time. That's where the beta I shared is useful

#

2/ If you do not use PaymentElement and use CardElement, beyond the fact that you shouldn't and PaymentElement is drastically better (but I'm biased), then you absolutely never need your SetupIntent -> PaymentIntent hack

topaz totem
#

And create payment method won't trigger 3DS?

paper dock
#

no

topaz totem
#

Ahhhhh

#

Very interesting

topaz totem
#

Checking something on my side

#

What's the difference between confirm Card Setup and Create Payment Method?

paper dock
#

the first one confirms a SetupIntent, the latter creates a PaymentMethod

topaz totem
#

Why do you need a setup intent if you can create the payment method directly? What will happen with CCs that require 3DS authentication when creating the payment method directly? Is that payment method still usable for capturing a payment intent?

#

And btw, I agree that payment element is awesome but we had an issue with it because it was forcing a full page refresh and we needed to use it within an iframe. The full page refresh caused issues with external processes that we had no control of.

#

I was looking into this now and seems like it was a problem with a full page redirect for us bank account payments. We were told there was no way of avoiding this. That's why we had to drop it

paper dock
#

SetupIntents are used to save cards for later and do 3DS and all of that

#

here you're just using it wrong/misunderstood really

topaz totem
#

Probably. But we do want to be able to use them later on

paper dock
#

but you can do this on PI ๐Ÿ˜…

topaz totem
#

LOL

#

Please convince me!!!

paper dock
#

1/ Create a PM
2/ Server-side check what you need
3/ Create a PI and confirm with that PM id and pass customer and setup_future_usage and that will automatically attach the PM for future payments

topaz totem
#

I would be more than glad to use it

#

If done like that, will we prevent double 3DS auths?

paper dock
#

yup

#

though I thought you said you didn't care about 3DS

topaz totem
#

The reason why we used a setup intent and a separate payment intent had nothing to do with 3DS

#

That's what I meant

#

Sorry for the confusion

#

Btw, my phone is almost dead

paper dock
#

gotcha

#

so yeah overall you can do what I said and ditch SetupIntent entirely

#

or move to PaymentElement + the beta I mentioned ๐Ÿ™‚