#dangthanhtuan1997
1 messages · Page 1 of 1 (latest)
Have you tried using a different test card?
like 4242 one
yes, 4242 not work too
yes, pi_3OX2U8AfC1NR9PLZ0DDSlZjG
also which test card are you using here?
4111 1111 1111 1111 and 4242 4242 4242 4242
hmm I don't see a confirmation request for this so most likely some validation is failing on the element itself
I use this code in Front-end
const { error } = await stripe.confirmPayment({
elements,
redirect: 'if_required',
confirmParams: {
payment_method_data: {
billing_details: {
address: {
country: 'US'
},
email: email.trim()
}
}
}
});
And it throw error
{
"code": "postal_code_recollection_required",
"type": "validation_error",
"message": "Your card number and postal code do not match."
}
what are you putting in the zip and cvc fields?
In the first charge, the form not have zip field. It have cardnumber, expiration and CVC. CVC I put 3 random number
so you're saying zip gets cleared out when you use link?
It only fills cardnumber, expiry and cvc?
also, is this page live? If so, can you share the URL?
No, I am coding on localhost
Hi there 👋 jumping in as I've been helping look into this. It's hard to tell without a more clear understanding of the full behavior you're seeing, but this sounds like expected behavior where we're recollecting the CVC for verification purposes.
Oh, I resolved my problem. The reason is my current country (VN), but I set default in my code is US. Thank you for support!!!