#NewtReyes

1 messages ยท Page 1 of 1 (latest)

fickle lanternBOT
void lance
#

Hi @compact gorge

compact gorge
#

Hi ๐Ÿ‘‹

You would likely want to use our deferred intent creation flow. That will create the PM before the PI is created so you can inspect the PM details to adjust your fees

void lance
#

Interesting

#

let me check a couple of things

compact gorge
#

It is a substantially different approach so it's work reviewing. You can also perform server-side confirmation of the Payment Intent after collecting the payment method data and update the fee when the PM data comes back to your server

void lance
#

In the first scenario, I can see it is using the payment element. In our case, we've been using the card element. Would it be possible to use that flow with the card element? What about the second flow that you sent me?

compact gorge
#

I think the second approach (2 step confirm) would make more sense but all our docs will reference the Payment Element since it has replaced the Card Element.

void lance
#

Yeah. We have a problem with Payment Element and US Bank Accounts, that's why we haven't used it.

#

I think the second approach (2 step confirm) would make more sense
Yeah, I think so too

compact gorge
#

Okay then I think the 2 step approach should work for you

void lance
#

Even with the card element?

#

or should I spike that to confirm?

compact gorge
#

I'm not sure what you mean here

void lance
#

So the example is using the payment element.

#

We need to keep using the card element.

compact gorge
#

You would use the Card Element to create a Card payment method and send that to the server instead of the Payment Element payment method

void lance
#

Will this flow work with the card element

#

You would use the Card Element to create a Card payment method and send that to the server instead of the Payment Element payment method

#

Yes

#

That's what I want to do

#

Are we certain that will work

compact gorge
#

When the customer submits your payment form, you can create a PaymentMethod to send to your server for additional validation or business logic prior to confirmation.
This step in the flow you would just pass the Card pm from the Card Element back to the server

void lance
#

got it

#

ok

#

will do that

#

@compact gorge Thank you very much!!!

compact gorge
#

Great, happy to help ๐Ÿ™‚

These kind of flows (update the amount based on the PM) are what the 2 step confirm process was designed to solve

void lance
#

Awesome

#

We have been using a setup intent and a payment intent to mimick this

#

but we have had problems with double 3DS authentication

#

:/

#

I think this could solve our double 3DS authentication problems

compact gorge
#

That is one of the goals so I think it will

void lance
#

Awesome