#Alex-create-token
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Give me a moment to catch up here and I'll respond as soon as I can ๐ thanks
ok, the question is: We are getting a 402 card error back sometimes which is strange... why is the card being authenticated if no payment is being made?
in fact we are getting CardError 402 card_error_authentication_required sometimes when making POST /v1/customers with a token as source
the token is being created successfully, by providing real card details through a VGS proxy
As far as I know we do run validation when a card is saved
https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge
so that may explain the occasional 402s
ok but is card validation the same as card authentication?
why is the message authentication_required?
this is misleading to us
as we reject card and show a message that it needs 3ds
but it is not the case
if it is invalid
Response body
{
"error": {
"code": "authentication_required",
"decline_code": "authentication_required",
"doc_url": "https://stripe.com/docs/error-codes/authentication-required",
"message": "card_error_authentication_required",
"param": "",
"type": "card_error"
}
}
authentication_required
The card issuer returned a decline code of authentication_required.
The card was declined as the transaction requires authentication.
The customer should try again and authenticate their card when prompted during the transaction. If the card issuer returns this decline code on an authenticated transaction, the customer may need to contact their card issuer for more information.
To learn more about why some payments fail and what you can do to decrease your decline rate visit our guide on understanding declines and failed payments.
this really makes it look like it is a problem authenticating a payment, not an invalid card
yeah it is confusing... I'm digging deeper, hold on.
As far as I can tell it is failing due to the automatic validation of the card
I don't know if we do run a minimal amount charge behind the curtain in order to run the validation check, but that seems likely and would explain the error
I do know that you can reach out to support team in order to learn more about disabling the automatic validation