#Amrux
1 messages · Page 1 of 1 (latest)
Hi
Can you share the Stripe Object Id that was returned with status requires_confirmation ?
Yes please
pi_3MrGeKCjsLROrJHk1fMGnfEb
thanks for sharing, let me check...
I don't see any 3DS attempt. while in fact I can see an error when trying to confirm the payment:
https://dashboard.stripe.com/test/logs/iar_MulNrPFubAIfhM
Can you share the sample code you are using ? how are you confirming the payment ?
So our assumption was that "requires_confirmation" only happens when 3DS is required. Is this an incorrect assumption?
const response = await stripe?.confirmCardPayment(client_secret);
Just doing that in our clientside JS
Which is a trigger based on our API response saying it "requires_confirmation"
nope, requires_confirmation means you need to confirm the PaymentIntent. While requires_action means 3DS is required
You should use confirmPayment and not confirmCardPayment
const {error} = await stripe.confirmPayment({
elements,
clientSecret,
confirmParams: {
return_url: 'https://example.com/order/123/complete',
},
});
aha interesting okay, that's good to know! On that note then, is that generic in that it will work for card payments too?
And will that prompt the 3DS window too?
yes, you should follow the documentation step by step, this is mentioned there:
https://stripe.com/docs/payments/accept-a-payment-deferred?type=payment#submit-the-payment
Brilliant thanks a lot 👍 not sure why we ended up with confirmCardPayment, but we'll play around with that. Appreciate the help!
Sure!