#dannyhadders-manual-pi-confirmation

1 messages ยท Page 1 of 1 (latest)

whole spoke
#

Hello! Hmm, not understanding why that flow wouldn't work with the Payment Element

white summit
#

sorry, which flow do you mean?

the one we currently have implemented or the new one?

whole spoke
#

So that I understand, you're looking to switch to using Payment Element as opposed to the standard card Element?

white summit
#

yes as we like the new UI it has ๐Ÿ™‚

whole spoke
#

Which supports various new payment methods, like Klarna (which you want to use?)

white summit
#

Correct ๐Ÿ™‚

whole spoke
#

Got it. Yeah, you can't really do manual confirmation with non-card payments

white summit
#

that includes apple pay + google pay I assume then ?

whole spoke
whole spoke
#

Just not Klarna

#

We generally advise against manual confirmation, because of issues like this

white summit
#

yes, one of our developers had said they used auth and capture previously so we are considering that implementation

if we were to use the auth and capture could we still use the new payment element UI?

whole spoke
#

Yep, exactly!

#
  1. Create the PI (passing capture_method: 'manual').
  2. Initiate the Payment Element with the PI client_secret.
  3. Capture payment details.
  4. Capture on the server when your business logic requires you to!
white summit
#

awesome, thanks for your help ๐Ÿ™‚

whole spoke
#

Np!