The new site can be found at https://developers.nets.eu/netaxept/en-EU/docs/
This site will no longer be maintained, but will stay live for a while for forwarding purposes.
Response codes
After each operation mentioned in the Flow Outline, the merchant receives a response message from Netaxept containing either response code "OK" or some error code. Response codes are returned to the merchant through API, can be fetched by using the Query call, and can be seen in a web-based Netaxept Admin.
Make your implementation so that it doesn't rely on the timestamps of different operations but interprets the content of the response message received. Also, we recommend you to make your payment implementation in such a manner that after a successful, failed or cancelled payment, the customer is redirected to a separate page informing of the outcome of the payment process. Therefore, the redirectURL parameter cannot contain the URL of the "select payment method" page or any other page that is in the middle of the order process. If the customer wants to return directly to the order process after successful, failed or cancelled payment, the webshop must generate a new order for them.
Response code "OK"
There are two places in the payment flow when Netaxept may respond with the response code OK. Be mindful that these two responses should not be confused.
Terminal phase is completed successfully
After the customer has entered their payment method information in the payment window and passed the possible 3D Secure authentication successfully, they are redirected to the redirectURL specified by the merchant in the Register call. At the end of this URL you will find a responseCode parameter which includes either "OK", "Cancel" or some error code. This specifies whether the terminal process has been completed successfully. It doesn't contain information about the completeness of the actual payment.
Example of a URL for a completed terminal phase: http://localhost/Test/?transactionId=6c5e402a4ee445ba9f19411f55c75b91&responseCode=OK Example of a URL for a payment where the customer clicked “Cancel” button on the payment window: http://localhost/Test/?transactionId=6c5e402a4ee445ba9f19411f55c75b91&responseCode=Cancel
Payment is processed successfully
The response code OK is also returned to the merchant when the transaction has been processed (for example authorized, captured or credited) successfully without errors by using the Process call. In that case, OK parameter can be found in the ResponseCode parameter in the ProcessResponse.
Despite of the successfully authorized and captured transaction, it is recommended to make the Query call before sending goods to the customer to verify that the money has actually been captured. This is due to the response times Netaxept from time to time see from third-party payment methods, such as direct bank payments.
Example of a response for a successfully processed payment: <ProcessResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <AuthorizationId>258460</AuthorizationId> <BatchNumber>642</BatchNumber> <ExecutionTime>2017-01-24T07:47:28.1900126+01:00</ExecutionTime> <MerchantId>[MERCHANTID]</MerchantId> <Operation>AUTH</Operation> <ResponseCode>OK</ResponseCode> <TransactionId>6c5e402a4ee445ba9f19411f55c75b91</TransactionId> </ProcessResponse>
Error codes
If something goes wrong when communicating between your system and Netaxept or in the middle of the payment process, Netaxept declines the transaction and returns an exception. All exceptions are wrapped in the outer Exception tag, with an Error tag inside. The type (xsi:type) of the Error tag indicates which exception it is. Read more about exceptions
All exceptions include the message that provides a textual description of what failed. Besides the message, one commonly used exception "BBSException" includes also error code, error source and error message which are available in English.
Example of an error response for a payment that is already processed: <Exception xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Error xsi:type="BBSException"> <Message>Unable to sale</Message> <Result> <IssuerId>3</IssuerId> <ResponseCode>98</ResponseCode> <ResponseText>Transaction already processed</ResponseText> <ResponseSource>Netaxept</ResponseSource> <TransactionId>6c5e402a4ee445ba9f19411f55c75b91</TransactionId> <ExecutionTime>2017-01-24T09:56:24.8329041+01:00</ExecutionTime> <MerchantId>[MERCHANTID]</MerchantId> <MaskedPan/> <MessageId>8ba8ccadbffa4f2ba7c6f286bbcada68</MessageId> </Result> </Error> </Exception>
Error sources
The error codes are divided into groups according to the source. The source is a textual description of which part of the system generated the error code. The source should not be used to drive code; instead, it should only be logged and used as a diagnostic tool if it is unclear why a transaction failed.
- "Netaxept" or "NTS" (or "01" in the old Netaxept; version 1), if the error occurred in the Netaxept solution.
- "Issuer" (or "02" in the old Netaxept; version 1), if the error came from the card Issuer or other payment method service provider.
- "Module" (or "03" in the old Netaxept; version 1)) or "Transport" (or "04" in the old Netaxept; version 1), if the error occurred internally at Nets.
- "Terminal" (or "05" in the old Netaxept; version 1), if the error occurred as a result of the customer input in the payment window.
- Occasionally, you can see other sources as well, for example the name of a Netaxept’s integration partner, like "Klarna"
Error codes from Netaxept (Source: Netaxept or 01)
- 14: Invalid card number
- 25: Transaction not found
- 30: “KID invalid” or “Field missing PAN”
- 84: Original transaction rejected
- 86: Transaction already reversed
- 96: Internal failure
- 97: No transaction
- 98: Transaction already processed
- 99: Several errors can result in this error code. Refer to the Response text for details
- MZ: Denied by 3D Secure authentication
- T1: Transaction reached merchant timeout value of xx:xx:xx
Error codes from Issuer (Source: Issuer or 02)
- 01: Refused by Issuer. You can advise the consumer to contact their Issuer for more information.
- 02: Refused by Issuer. You can advise the consumer to contact their Issuer for more information.
- 03: Refused by Issuer because of the invalid merchant.
- 04: Refused by Issuer.
- 05: Refused by Issuer.
- 06: Refused by Issuer.
- 07: Refused by Issuer.
- 08: Refused by Issuer.
- 10: Refused by Issuer.
- 12: Invalid transaction.
- 13: Invalid amount.
- 14: Refused by Issuer.
- 15: Refused by Issuer.
- 19: Refused by Issuer. You can try to submit the transaction again.
- 25: Refused by Issuer.
- 30: Refused by Issuer because of the format error.
- 31: Issuer could not be reached. Contact Netaxept customer support for for your country for more information.
- 33: Expired card.
- 34: Refused by Issuer.
- 35: Refused by Issuer.
- 36: Refused by Issuer.
- 37: Refused by Issuer.
- 39: Invalid transaction.
- 41: Refused by Issuer. You can advise the consumer to contact their Issuer for more information.
- 43: Refused by Issuer. You can advise the consumer to contact their Issuer for more information.
- 51: Refused by Issuer. You can advise the consumer to contact their Issuer for more information.
- 52: Refused by Issuer because of no checking account.
- 54: Refused by Issuer because of the expired card.
- 56: Refused by Issuer because of no card record.
- 57: Refused by Issuer of transaction not permitted to consumer.
- 58: Refused by Issuer of transaction not permitted.
- 59: Refused by Issuer. You can advise the consumer to contact their Issuer for more information.
- 60: Refused by Issuer.
- 61: Refused by Issuer. You can advise the consumer to contact their Issuer for more information.
- 62: Refused by issuer. You can advise the consumer to contact their Issuer for more information.
- 63: Refused by issuer.
- 65: Refused by issuer. You can advise the consumer to contact their Issuer for more information.
- 66: Refused by issuer. You can advise the consumer to contact their Issuer for more information.
- 68: Refused by issuer because response received to late. You can try to submit the transaction again.
- 77: Invalid transaction.
- 78: Refused by Issuer.
- 79: Refused by Issuer.
- 80: Refused by Issuer.
- 86: Refused by Issuer for configuration issues. Contact Netaxept customer support for your country for more information.
- 91: Refused by Issuer because Issuer is temporarily inoperative. You can try to submit the transaction again.
- 92: Refused by Issuer because Issuer is temporarily inoperative. You can try to submit the transaction again.
- 93: Refused by Issuer. You can advise the consumer to contact their Issuer for more information.
- 95: Refused by Issuer because Issuer is temporarily unavailable. You can try to submit the transaction again.
- 96: Refused by Issuer because of system malfunction. You can try to submit the transaction again.
- C9: Refused by Issuer.
- N0: Refused by Issuer.
- N7: Refused by Issuer because of invalid CVV/CVC security code.
- P1: Refused by Issuer.
- P9: Refused by Issuer.
- T3: Refused by Issuer.
- T8: Refused by Issuer.
- 1A: Issuer has soft declined the transaction. 3D Secure (or equivalent) authentication is required.
Error codes from Netaxept partners, not related to 3D Secure authentication (Source: Module or 03)
- 01: Timeout experienced.
- 06: Technical reversal was attempted, due to timeout, but the reversal failed as well.
Error codes related to the communication between Netaxept and 3D Secure authentication (Source: Transport or 04)
- 30: Value missing in required field, often resulting in the response text "Ntoa: Taglen err". A rare error that can occur if Visa or MasterCard experiences problems with 3D Secure authentication.
Error codes / messages originating from Netaxept's payment window (Source: Terminal or 05)
Netaxept displays error messages to the customer in the payment window, to guide the customer in cases where error situations can be resolved by fixing errors for example in data fields. These error messages will be translated to the language specified by the merchant in the Register call. The error messages may also specify the data field where the error is happening, to direct the customer to resolve the error. The following are the most common error messages shown in the payment window for card payments.
- Too few digits
- Expired card
- Missing bank agreement
- Too many digits
- The cardnumber belongs to another card company
- Contains illegal characters
- Wrong cardnumber
- Format error
- Illegal value
- Is missing and required
- Not legal length
- Refused by Issuer (Several payment methods may return this error message. In these cases, the Issuer bank or payment method service provider has refused the payment, and the customer can be advised to contact their card Issuer or payment method service provider to resolve the issue).
- 17: Cancelled by customer
- 30: Missing customer input
Error messages without error codes
- Pan Hash not in file: panHash (token) used in subsequent payment has been deleted due to retention criteria described here
Error codes originated from Netaxept’s integration partners
Error messages from Netaxept’s integration partners are documented at their own developer site.
Error codes related to merchant hosted payment window
When the merchant uses their own hosted payment window, Netaxept will compose the responseCode parameter returned to the merchant via Query call from the following field names and messages. At the same time, the Operation parameter and the ResponseSource parameter will be set to "Terminal". In the responseCode parameter the field names and messages are concatenated with a ":", and if there are multiple errors, they will be comma-separated.
Field name:
- Cardnumber
- ExpiryMonth
- ExpiryYear
- SecurityCode
Message:
- TooFewDigits
- TooManyDigits
- ContainsIllegalCharacters
- HasWrongCheckDigit
- FormatError
- IllegalValue
- Required
- IllegalLength
- ExpiredCard
In some cases, the responseCode will be set to "30" when the ResponseSource is set to "Terminal". This is in the situations where Netaxept tries to look up the payment card in its BIN servers but is unable to find it. This can be communicated to the customer as "Illegal card". This case will be extremely seldom in the production environment as the production BIN servers have larger datasets than the ones in the test environment.
Example of the error message returned to the merchant via Query response: <Error> <DateTime>2017-08-04T09:46:09.947</DateTime> <Operation>Terminal</Operation> <ResponseCode>Cardnumber:Required</ResponseCode> <ResponseSource>Terminal</ResponseSource> <ResponseText/> </Error> Examples of the ResponseCode values: ExpiryMonth:FormatError => Expiry month is formally incorrect. For example, if an expiryDate is set to "1412", it will yield FormatError. Cardnumber:TooManyDigits => Too many digits in the card number. Cardnumber:HasWrongCheckDigit,ExpiryMonth:FormatError => A combination of wrong check digit on the card number and expiry month being formally incorrect.
Error codes related only to version 1 of Netaxept API
Below you can find error codes from version 1 of Netaxept API. The error response consists of a three-digit number indicating data field, combined with a code indicating the error. For example, if MasterCard CVC2 is missing, the response is 144:7.
3-digit number indicating the data field where the error occur:
- 137: VISA card number
- 138: VISA expiry month
- 139: VISA expiry year
- 140: VISA CVV2
- 141: MasterCard card number
- 142: MasterCard expiry month
- 143: MasterCard expiry year
- 144: MasterCard CVC2
- 145: Diners Club card number
- 146: Diners Club expiry month
- 147: Diners Club expiry year
- 148: Diners Club CVC
- 149: American Express card number
- 150: American Express expiry month
- 151: American Express expiry year
- 156: Maestro card number
- 157: Maestro expiry month
- 158: Maestro expiry year
- 159: Maestro CVC2
Code indicating the exact error:
- 1: Too few digits
- 2: Too many digits
- 3: Contains illegal characters
- 4: Has wrong check digit
- 5: Format error
- 6: Illegal value
- 7: Is missing and required
- 8: Is not of legal length
- 9: Only a single row should be filled out
- 10: Expired card
- 18: Missing bank agreement
- 22: PAN brand id mismatch