#Alex-create-token

1 messages ยท Page 1 of 1 (latest)

topaz lance
#

Hello ๐Ÿ‘‹
Give me a moment to catch up here and I'll respond as soon as I can ๐Ÿ™‚ thanks

lean jasper
#

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

topaz lance
#

so that may explain the occasional 402s

lean jasper
#

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

topaz lance
#

yeah it is confusing... I'm digging deeper, hold on.

lean jasper
#

if it helps, this is the request id: req_1znIhQRIf1MSd1

#

for the post customers

topaz lance
#

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

lean jasper
#

oh ok I'll do that then, I would like to validate that the card is valid, but not if it requires authentication... as this process happens offline

#

thanks for your help I'll contact support