When you start Payment API integration, it is always that you need to test API. You can not test using real cards in production environment.
To use testing environment, you need to use different endpoint for Transaction API.
https://api.pay.agency/v1/test/transaction
Our Status API for test transaction is also different than production environment.
https://api.pay.agency/v1/test/get/transaction
We provide different response based on the request. You can use below parameters with value in the API and we will send response according to that.
Parameter | Value | Response Description |
---|---|---|
country | AF(Afghanistan) KP(North Korea) |
Transaction decline with message Country blocked |
amount | <(Less than) 10 | Transaction decline with lower amount limit |
amount | >(Greater than) 100 | Transaction decline with higher amount limit |
card_number | 4917484589897107 5555555555554444 6011000990139424 |
Transaction success |
card_number | 6011000991300009 | Card blocked |
card_number | 374245455400126 | Transaction Pending |
card_number | 6011111111111117 | Transaction declined with Insufficient Fund |
card_number | 378282246310005 | Transaction declined with Do Not Honour |
card_number | 4263982640269299 5425233430109903 |
Transaction requires 3DS action |
card_number | 4000000000001976 | Transaction to be confimed |
card_number | Other than above cards | Transaction decline with card not supported. |
card_number | Any cards with expired month/year | Transaction blocked with card expired. |
When you use card_number of Pending, you will get success or failed response webhook after 2 Minutes to the webhook_url
that you have passed in the transaction. In case you have used To be confirmed card_number, you will receive webhook in 1 minute.
In the 3DS page, there is drop-down of transaction status. You can select which type of response you want when redirect to response_url
After you have redirect back to response_url
, you have to call our Status API to check final status of the transaction.