How can I test responseCodes using additionalData?
Do you have the right user role?
Please check whether you have the following user role:
Manage Test Cards
To test different responseCodes, you can do a normal test payment request to /payments using one of our test cards, and adding an additionalData object containing a RequestedTestAcquirerResponseCode element. In this object you specify the desired responseCodes.
For example, if you want to get responseCode 6 - Expired Card you can do a payment request like the following:
{
"amount": {
"currency": "USD",
"value": 1000
},
"paymentMethod": {
"type": "scheme",
"expiryYear": "2030",
"expiryMonth": "03",
"cvc": "737",
"number": "4111111111111111",
"holderName": "J. De Tester"
},
"additionalData": {
"RequestedTestAcquirerResponseCode": 6
},
"reference": "ref213784568978023465896",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
}
Check our result code testing page for a detailed guide. For all possible responseCodes refer to Adyen response codes.
If testing using the additionalData object is not available for you, you can also test responseCodes using the cardholder name.
Was this article helpful?
Learn more
Find more details on this topic.
Go to Adyen Docs