Error_card_not_authenticated

I have added a card under customer from this api

https://sandboxapi.rapyd.net/v1/customers/customer_id/payment_methods

{
“type”: “us_atmdebit_card”,
“fields”: {
“number”: “4242424242424242”,
“expiration_month”: “10”,
“expiration_year”: “25”,
“cvv”: “123”,
“name”: “John Doe”
},
“metadata”: {
“merchant_defined”: true
}
}

and make this card as default.

but when i am making payment using this api:

https://sandboxapi.rapyd.net/v1/payments
{
“amount”: 30,
“currency”: “USD”,
“customer”: customer_id,
“capture”: true
}

it gives me ERROR_CARD_NOT_AUTHENTICATED error.

Hi Khurram1,
Welcome to the Rapyd developer community!
Please see this documentation page on card numbers for testing.

Thanks

1 Like