#Kartikre-payment-error
1 messages · Page 1 of 1 (latest)
This is the screen shot
It is after conforming payment
const { error } = await stripe.confirmPayment({
elements,
confirmParams: {
// Make sure to change this to your payment completion page
return_url: "http://localhost:3000/thankyou.html",
},
});
// This point will only be reached if there is an immediate error when
// confirming the payment. Otherwise, your customer will be redirected to
// your `return_url`. For some payment methods like iDEAL, your customer will
// be redirected to an intermediate site first to authorize the payment, then
// redirected to the `return_url`.
if (error.type === "card_error" || error.type === "validation_error") {
setMessage(error.message);
} else {
setMessage("An unexpected error occured.");
}
Do you have the ID of the payment intent (pi_XXX) that you're working with there?
pi_3KHr2HSCQUUW60YM1zV6mBjy
Thanks, pulling that up
OHk
Alright, so it looks there is an India regulation that isn't being satisfied for that payment. If you look at the last_payment_error field within that payment intent, you should be able to see additional details on the exact cause. Should look something like this:
message: "As per Indian regulations, export transactions require a description. More info here: https://stripe.com/docs/india-exports",
param: "description",
payment_method: {```
Clickable link to that reference: https://stripe.com/docs/india-exports
Got it thanks I will check and let you know if it succeded or not