How can I test a Pending payment?

To ensure a complete integration it is important to test different resultCodes. You can test a Pending payment result, and other resultCodes, by using the desired resultCode as the holderName. For example, to test a pending payment use the following request: 

{
"amount": {
"currency": "USD",
"value": 1000
},
"reference": "Your order number",
"paymentMethod": {
"type": "scheme",
"number": "4111111111111111",
"expiryMonth": "10",
"expiryYear": "2020",
"holderName": "PENDING",
"cvc": "737"
},
"returnUrl": "https://your-company.com/...",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
}

This works the same for all other resultCodes. For more information and details refer to the following page: Testing with card holder name

Was this article helpful?
0 out of 0 found this helpful