#hendrid
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Can you share the example PaymentIntent ID where you're seeing this error?
Also screenshots of the modal would help understand the flow
The second intent with this card 4000002760003184 Always authenticate don't show the modal
Can you share the PaymentIntent ID?
I don't see a confirmation request coming in to confirm/handle the next action on the PaymentIntent (for the one that's incomplete)
Can you check your logs to see if there's an error when you attempt to confirm the PaymentIntent client-side?
This is the problem, the modal don't show in the second payment intent
The modal won't show until you attempt to confirm the PaymentIntent
I suspect your confirmation call is failing prior to reaching Stripe Servers
Have you looked into your logs to see if there are any errors?
Not in the network tab, check the console tab
This one?
No, that seems like just a warning.
Can you share the code that you're running for confirming the PaymentIntent?
the modal
client_secret,
stripe,
returnUrl,
setError3DS,
}) => {
useEffect(() => {
stripe
.confirmPayment({
clientSecret: client_secret,
confirmParams: {
return_url: returnUrl,
},
})
.then((result) => {
if (result.error) {
setError3DS(result.error.decline_code);
}
});
}, []);
return <></>;
};
You'd also want to configure the CSP policy correctly as it seems like you have a bunch of CSP errors
https://stripe.com/docs/security/guide#content-security-policy
Can you check if your confirmPayment function is running after the client-secret is swapped?
You'd likely want to change useEffect dependency array to include client_secret so that useEffect runs everytime client-secret changes