#silkmilksilk-confirm-PI-action

1 messages ยท Page 1 of 1 (latest)

oblique arrow
#

Hello ๐Ÿ‘‹
Typically Stripe.js will handle it for you

mint zealot
#

Hello! Ok, thats good, how can I tell Stripe.js that there's an action to be taken if it happened on the server?

oblique arrow
mint zealot
#

aaaah okay! i'll give that a read, thanks!

oblique arrow
#

quick question: what Stripe element are you using? The guide I linked above uses cardElement in the example

mint zealot
#

I've used the SetupIntent API with the Payment Element to save a card for future use.

Then i'm using the saved PaymentMethod later when the customers checkouts, and confirming the it on the server without any elements.

#

does that make sense?

oblique arrow
#

yup gotcha! makes sense.

mint zealot
#

ok ok , it does seem similar to that.
It looks like if i just return the payment method + the client secret, then Stripe.js will take over and complete the 3D secure

oblique arrow
#

yup

mint zealot
#

FYI heres an example paymentintent pi_3LOLajFlWrS9Xt7Z02q20IUN

#

Ok, im going to give this a rough test and see how it goes.

#

thanks for all the help, you guys are great!