Response Codes
RedDragonPay uses response codes to indicate the outcome of a transaction. Below is a comprehensive list of response codes and their meanings:
Response Code | Response message | Comments |
---|---|---|
000 | Success | Transaction captured |
001 | Acquirer Error | Acquirer bank not available |
002 | Denied | Denied by Bank |
003 | Timeout | Transaction timed out |
004 | Declined | Declined by bank |
005 | Authentication not available | Authentication issue |
006 | Transaction processing | Transaction in process |
007 | Rejected by acquirer | Rejected by bank |
008 | Duplicate | Duplicate submission |
009 | Response signature did not match | Response from acquirer did not match, re-check transaction status |
010 | Cancelled by user | User pressed cancel button |
011 | Authorization success but error processing recurring payment | |
012 | Denied due to fraud detection | |
013 | Total refund amount greater than sale amount | |
014 | Refund Amount should be less than today’s Captured Amount | |
015 | Transaction is pending | Transaction is pending |
016 | Invalid refund amount | |
017 | Acquirer service down | |
018 | Duplicate order ID | |
019 | Duplicate refund order ID | |
022 | Failed at acquirer | Transaction was not processed by bank |
026 | Pending | Transaction in process |
100 | User not found | Invalid credentials used |
105 | Invalid credentials used | User not active |
113 | Payment option not supported | Payment method not allowed for the user |
130 | Currency not supported | |
207 | Invalid refund amount | Total Refund Amount should be less than today’s Captured Amount |
It is recommended to check the combination of status and response code received in response. Response Code: (000) + Status: (Captured) = Successfully Captured
Possible Status
-
Authentication Failed
-
Browser Closed
-
Cancelled
-
Captured
-
Duplicate
-
Enrolled
-
Failed
-
Failed at Acquirer
-
Failed by acquirer
-
Invalid
-
Pending
-
Rejected
-
Timeout
-
Approved
-
Case 1: RESPONSE_CODE = 000 and STATUS = Captured : When you receive this combination, it means transaction successful and completed
-
Case 2: RESPONSE_CODE = Any Code and STATUS = Timeout or STATUS = Pending : When you receive this combination, It means transaction is not completed, transaction neither failed or success, PG is waiting status from Acquirer to update transaction’s final status, in this case you can check with status API until you get final status of the transaction.
-
Case 3: RESPONSE_CODE = 000 and STATUS = Enrolled : When you receive this combination, it means transaction is not completed waiting for next step authentication, this combination usually comes in 3DS transaction
-
Case 4: RESPONSE_CODE = Any Code other than 000 and STATUS = Any Status other than (Captured, Enrolled, Pending and timeout): when you receive this combination you can consider transaction is failed or rejected.
For Invalid/Error Transaction
Response Code | Response message |
---|---|
300 | Invalid Request |
302 | No transaction found |
323 | Invalid Hash |
327 | Invalid request (Request URL) |
900 | Internal system error |
999 | Unknown Error |