#JamieJames - Payment Flow Implementation

1 messages ยท Page 1 of 1 (latest)

sharp gazelle
#

Hello! To clarify, are you using the Card Element or the Payment Element? It sounds like it might be the latter?

spare vapor
#

I'm not sure off the cuff - one sec, let me look

#

Ah, elements.create('payment', {....

sharp gazelle
#

Yep, that's the Payment Element, which is not compatible with the payment flow you're describing. The Payment Element both collects payment info and confirms the Payment Intent at the same time. If you want to separate those two steps you would need to use the Card Element instead.

#

Or other individual elements, if you want to accept more than just cards.

spare vapor
#

Thanks Rubeus, that is exactly what I needed!

sharp gazelle
spare vapor
#

I managed to get a long way without realising there were two options here

#

Looks like my long day is about to get longer. Hopefully the re-arrange wont be too tricky though. I'll let you know either way ๐Ÿ™‚

Thanks again, massively appreciated.

sharp gazelle
#

But you'll need to modify it a bit for the flow you want (as I described above).

spare vapor
#

๐Ÿ‘