Error reasons
Why a payment was declined or failed, and what you or your customer can do about it.
When a payment isn't successful, the API still responds with HTTP status 200 OK or 201 Created, but the transaction status is error. When the card issuer or the card network declines a card payment, the payment_method_details of the transaction tell you why:
elavon_response_code: the response code, three digits. See Response codes.elavon_advice_code: the merchant advice code, two digits. It tells you whether and when you can try again. See Merchant advice codes.
The reason of the transaction is Denied at Elavon. Base your logic on the codes, not on the reason.
{
"status": "error",
"transactions": [
{
"status": "error",
"payment_method": "credit-card",
"payment_method_brand": "mastercard",
"reason": "Denied at Elavon",
"payment_method_details": {
"elavon_response_code": "173",
"elavon_advice_code": "02"
}
}
]
}The response is shortened. In this example, the issuer declined the payment for its own policy (173) and advises to try again later (02).
Soft declines
With a soft decline, the issuer doesn't refuse the payment, but asks for strong customer authentication first: response code 144, or 148 to 150 when an exemption from strong customer authentication can't be used. The transaction then also has a soft_declined event. Retry the payment with 3-D Secure.
Response codes
elavon_response_code holds one of these codes.
| Code | Description |
|---|---|
000 | Approved |
001 | Partial approval |
100 | Do not honour |
101 | Expired card |
106 | PIN retries exceeded |
107 | Refer to card issuer |
108 | Refer to card issuer, special conditions |
109 | Invalid merchant |
110 | Invalid amount |
111 | Invalid card number |
117 | Invalid PIN |
118 | No card record |
120 | Transaction not permitted to terminal |
123 | Exceeds withdrawal frequency limit |
125 | Card not active |
130 | Invalid terminal |
131 | Sequence number error |
132 | Must settle batch |
133 | No transactions |
134 | Invalid expiry date |
135 | Invalid BIN |
136 | Invalid currency |
137 | Invalid batch number |
138 | Insufficient funds or over credit limit |
139 | Transaction not permitted to issuer or cardholder |
140 | Soft decline: switch from contactless to contact with PIN, or exceeds withdrawal count limit |
144 | Soft decline: 3-D Secure version 2 authentication requested on an unsecured e-commerce transaction |
145 | Soft decline: process the transaction as single tap with online PIN for cardholder authentication |
148 | SCA exemption soft decline 1: exemption criteria not met |
149 | SCA exemption soft decline 2: merchant not enabled for the exemption |
150 | SCA exemption soft decline 3: Transaction Risk Analysis service not available |
151 | Pick up card |
152 | Pick up card, special conditions |
153 | No such issuer |
154 | Lost card, pick up |
155 | Stolen card, pick up |
156 | Restricted card |
157 | Blocked, first use |
158 | Transaction cannot be completed |
159 | Stop payment order |
160 | Revocation of authorisation order |
161 | Revocation of all authorisations |
162 | Re-enter transaction |
163 | Suspected fraud |
164 | Exceeds approval amount limits |
165 | Issuer or switch is inactive |
166 | Cashback service not available |
167 | Cashback request exceeds issuer limit |
168 | Negative online CAM, dCVV, iCVV or CVV |
169 | Declined for CVV failure |
170 | Closed account |
171 | Cannot verify PIN |
172 | Life cycle decline |
173 | Policy decline |
174 | Security decline |
190 | Non-DCC transaction not allowed |
301 | Not supported |
306 | Not successful |
400 | Successful reversal |
500 | Reconciliation in balance |
501 | Reconciliation out of balance |
902 | Invalid transaction |
904 | Format error |
909 | Malfunction |
916 | MAC incorrect |
992 | Inconsistent with message specification |
Merchant advice codes
elavon_advice_code tells you whether and when you can try the payment again. Don't retry a payment with code 03 or 21. With codes 24 to 30, wait at least the time of the code before you retry.
| Code | Description |
|---|---|
01 | Updated or additional information needed: obtain new account information |
02 | Try again later |
03 | Do not try again |
04 | Token requirements not fulfilled for this token type |
05 | Negotiated value not approved |
21 | Payment cancellation: do not resubmit the transaction |
22 | Merchant does not qualify for product code |
24 | Retry after 1 hour |
25 | Retry after 24 hours |
26 | Retry after 2 days |
27 | Retry after 4 days |
28 | Retry after 6 days |
29 | Retry after 8 days |
30 | Retry after 10 days |
40 | Issuer recognises the product as a consumer non-reloadable prepaid card |
41 | Issuer recognises the product as a consumer single-use virtual card number |