Developer Discussions

Ask a Question
Back to All

Add customer card in vault

Is sandbox working properly for acc card to customer? i'm always getting an error PY0008 when i add the tokenized card to the customer.

below is most recent card info i used for testing. i also used good cards from list of CC from but i still get the same error.

"CARD_NUMBER": "5424821930348582",
"EXP_MONTH": "09",
"EXP_YEAR": "2023",
"CVC": "313"

"Error from add card to customer"{
"code": 400,
"response": {
"code": "PY0008",
"message": "Token is invalid."
"returned by Maya for Create PaymentTokenId endpoint": {
"code": 200,
"response": {
"paymentTokenId": "EcxUh9QOdXMmQ0FaziEdsZQip0WRQPwBCmW1xOf7m9d0CL1GIq7hXqANmeWLs9j90hxmts9pa1TBdlIAVN8cNzyDoLgbCJWmsch8wMD0q44kFP6HAUKDX7y7vOAq37IewN4CmpRxOejk2y8mQ7nqXWMb9vyDOOFQrnMs",
"state": "AVAILABLE",
"createdAt": "2024-03-27T19:29:52.000Z",
"updatedAt": "2024-03-27T19:29:52.000Z",
"issuer": "SmartPay"