Hello,
I've created payment token with Secure Acceptance Hosted Checkout and want to use that token for making payments via REST API.
When I'm calling in REST API I'm getting "Decline - Invalid account number" Error message.
I've created token in test environment "https://testsecureacceptance.cybersource.com/pay" and tried to use token in test REST API "https://apitest.cybersource.com/pts/v2/payments". Below is REST API Request and response.
Please help to clarify.
Thanks,
Arthur
Request:
{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"paymentInformation": {
"tokenizedCard": {
"number": "6572840497286628104004",
"expirationMonth": "06",
"expirationYear": "2027",
"type": "001",
"transactionType": "1"
}
},
"orderInformation": {
"amountDetails": {
"totalAmount": "102.21",
"currency": "USD"
},
"billTo": {
"firstName": "John",
"lastName": "Doe",
"address1": "1 Market St",
"locality": "san francisco",
"administrativeArea": "CA",
"postalCode": "94105",
"country": "US",
"email": "test@cybs.com",
"phoneNumber": "4158880000"
}
}
}
Response:
{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"errorInformation": {
"reason": "INVALID_ACCOUNT",
"message": "Decline - Invalid account number"
},
"id": "6576079983886572003954",
"status": "DECLINED"
}
Solved! Go to Solution
Thank you for reaching out, @arthur_adyan! One of our agents will get back to you with more information as soon as possible. -Jenn
Hi @arthur_adyan,
Please reach out to the CyberSource team directly for further assistance.
CyberSource Support
800-709-7779
What was the solution? I am having the same issue but using an Apple Pay payment token.
Hi @dlsdev,
Because this is a Cybersource product please reach out directly to Cybersource via the phone number listed in Diana's reply or through their support page.
Thanks,
Illana