如何使用 additionalData 测试 responseCodes?

A green triangle with an exclamation point in it.

您是否有正确的用户角色?

请检查您是否有以下用户角色:

  • 管理测试卡

要测试不同的 responseCodes,您可以使用我们的测试卡之一对 /payments 执行常规测试付款请求,并添加一个包含 RequestedTestAcquirerResponseCode 元素的 additionalData 对象。在此对象中,您指定所需的 responseCodes。

例如,如果您想获得 responseCode 6 - Expired Card(过期卡),您可以发起如下付款请求:


{
"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"
}

查看我们的结果代码测试页面,获取详细指南。对于所有可能的 responseCodes,请参阅 Adyen 响应代码

如果您无法使用 additionalData 对象进行测试,那么还可以使用持卡人姓名测试 responseCodes

了解更多

查找有关此主题的更多详情。

The illustration of support agent wearing a headset.

您是否需要其他帮助?

联系我们的支持团队

通过添加图像或屏幕截图向我们发送您的问题的详细信息。

提交请求