The XML method of integration can be used to process various types of transactions plus additional gateway features and functionality.
The following resources are the same for all the requests and responses you find on this page:
TYPE | URL |
---|---|
Request URL | https://testpayments.nuvei.com/merchant/xmlpayment |
XML XSD descriptor | https://testpayments.nuvei.com/merchant/gateway.xsd |
Use the Request URL and the Request Body Fields to perform a request for this feature, then prepare your integration to receive the response, as defined by the Response Body Fields.
Perform Credit card payments.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
ORDERID | Y | A unique identifier for the order created by the merchant. Maximun of 24 characters. |
TERMINALID | Y | The merchant's terminal ID. |
AMOUNT | Y | The amount of the transaction. A 2 digit decimal or an Integer value for JPY amounts. |
DATETIME | Y | Request date and time. Format: DD-MM-YYY:HH:MM:SS:SSS. |
TRACKDATA | N | Track 2 data. Should be present for a swiped cardholder present (CHP) transaction. If this is present then TERMINALTYPE should be set to 3 and TRANSACTIONTYPE should be set to 0. |
CARDNUMBER | N | Payment card number. Required if TRACKDATA is not being sent. If a SECURECARD is used (in CARDTYPE), this field should include the CARDREFERENCE of the given Secure Card. |
GOOGLEPAYLOAD | N | When using google pay for payments, instead of the TRACKDATA or CARDNUMBER, you pass this field, with the Google Pay user data, received from your request, converted to Hexadecimal. |
APPLEPAYLOAD | N | When using apple pay for payments, instead of the TRACKDATA or CARDNUMBER, you pass this field, with the Apple Pay user data, received from your request, converted to Hexadecimal. |
CARDTYPE | Y | Card Type used for the transaction. For more details on this, visit Special Fields and Parameters - Card Types. This field can also include the SECURECARD type, when using a Secure Card to perform the transaction. |
CARDEXPIRY | N | Expiry date of the card. A 4 digit expiry field (MMYY), required if TRACKDATA is not being sent. This field should not be provided if the CARDTYPE is SECURECARD. |
CARDHOLDERNAME | N | The name of the card holder, required if TRACKDATA is not being sent and not using a SecureCard. It should be as displayed on the front of the card. This field should not be provided if the CARDTYPE is SECURECARD. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
CURRENCY | Y | Currency of the transaction. A 3 character code following the ISO 4217 Currency Code. |
FOREIGNCURRENCYINFORMATION | N | Tag contains Dynamic Currency Conversion information. It has to be present in the eDCC enabled transactions. See the next section, ND004 - Using eDCC, for more details on this field. |
TERMINALTYPE | Y | The type of terminal: 1 - MOTO (Mail Order/Telephone Order). 2 - eCommerce. 3 - Cardholder Present. |
TRANSACTIONTYPE | Y | Normally: 0 - Cardholder Present (CHP) transaction. 4 - MOTO (Mail Order/Telephone Order). 7 - eCommerce. Recurring Payment Flagging: 2 - Specify that this transaction is recurring. This must be accompanied by the RECURRINGTXNREF field or have special permission granted by the Gateway. Not all processors support this transaction type and consultation with the support team should be carried out prior to configuring recurring payment flagging. For First Data Latvia terminal MOTO transactions: 4 - Telephone Order. 9 - Mail Order. If sending XID & CAVV from non Gateway MPI on an eCommerce transaction use: 0 - not applicable. 1 - Single transaction. 2 - Recurring transaction. 3 - Installment payment. 4 - Unknown classification. 7 - Transaction when payment data was transmitted using SSL encryption, or Channel Encrypted. 8 - Transaction in the clear, or Non Secure. |
AUTOREADY | N | Y or N. If this is set to Y the Gateway will automatically set the transaction to READY in the batch. If set to N then the transaction will go to a PENDING status. If not present the terminal default will be used. |
N | Cardholder's e-mail address. If populated, the cardholder will receive an email receipt. This can be overridden by the Terminal Setup settings “Disable Cardholder Receipt”. |
|
CVV | N | The security code entered by the card holder. |
ISSUENO | N | The issue no. of the card (Solo). |
ADDRESS1 | N | The first address. Required for AVS. |
ADDRESS2 | N | Second line of address. Required for AVS. Same as ADDRESS1. |
POSTCODE | N | Post code for the address. Required for AVS. Required for MaxMind MinFraud fraud scoring complementary service. |
BILLTOFIRSTNAME | N | First name of the “Bill To” part of a sale. |
BILLTOLASTNAME | N | Last name of the “Bill To” part of a sale. |
DESCRIPTION | N | A description of the transaction. |
MOBILENUMBER | N | Used for SMS receipts. International format, numeric only. |
DEVICEID | N | The unique identifier string for a connecting device. Mandatory for non-server based devices such as handheld devices/cash register etc. |
PHONE | N | Card Holder Phone Number stored against transaction. International format, numeric only. |
CITY | N | City of the address. Required for MaxMind MinFraud fraud scoring complementary service. |
REGION | N | Region of the address. Required for MaxMind MinFraud fraud scoring complementary service. |
COUNTRY | N | Country code for the address. Following the ISO 3166-1-alpha-2 Country Code. Required for MaxMind MinFraud fraud scoring complementary service. |
IPADDRESS | N | Recommended inclusion. Useful for tracking customers. Functionality will expand in the future. Required for MaxMind MinFraud fraud scoring. |
SIGNATURE | N | Optional field if processing Cardholder Present (CHP) transactions using the TRACKDATA field. For format, visit Special Fields and Parameters. |
CUSTOMFIELD'N' | N | Any of the available Custom Fields for the Terminal. Their values are going to be stored and can be used by the Payment Gateway later on. To understand more, visit the section regarding Special Fields and Parameters. Limited to 30 custom fields in this request. |
LEVEL_2_DATA | N | Component of the request that can be added in case the Level II Data feature is in use for the Terminal processing the Payment. See ND005 - Level II Data Validation. |
LEVEL_3_DATA | N | Component of the request that can be added in case the Level III Data feature is in use for the Terminal processing the Payment. See ND006 - Level 3 Data Validation. |
ENHANCED_DATA_TEMPLATE | N | Enhanced Data template name to be used when creating the transaction. It fills up any not provided transaction's enhanced data fields. Note that if you use a template, but send the data during the request, the gateway is just going to use the template to fill the gaps of whatever you didn't send in your original request. Also, if you send at least one item in LEVEL_3_DATA component, no item from the template is going to be applied. This field should only be used if you desire to use one of your Enhanced Data Templates (see Enhanced Data Templates for more details). This field is only available for terminals with the Enhanced Data (Level II and Level III) feature enabled. |
FRAUDREVIEWSESSIONID | N | No longer supported. |
CREDENTIALONFILE | N | Component of the request that can be added in case Credential on File feature is in use for the Terminal processing the Payment. See ND008 - Credential on File. |
BYPASS_SURCHARGE | N | Send a value of 'true' to identify that surcharge has not been applied to this payment. Only applicable if surcharging is enabled for the terminal. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
When using a Single Currency Terminal, the string to generate the HASH field is going to be formed using:
TERMINALID:ORDERID:AMOUNT:DATETIME:SECRET
When using a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:ORDERID:CURRENCY:AMOUNT:DATETIME:SECRET
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
ND004 - Using eDCC
All eDCC enabled XML requests must include the FOREIGNCURRENCYINFORMATION tag and its nested tags.
PARAMETER NAME | REQUIRED | DESCRIPTION |
---|---|---|
CARDCURRENCY | Y | Card's currency code. |
CARDAMOUNT | Y | Amount which is supposed to be charged in the home currency. |
CONVERSIONRATE | Y | Value received in the Conversion Rate request should be there. Processing bank (EuroConex) will decline transaction if the wrong rate will be there. |
Those fields can be obtained by using the eDCC Exchange Rate feature.
ND005 - Level II Data Validation
This field is associated with the Enhanced Data (Level II and Level III) feature. “Allow Enhancced Data (Level II and Level III)” must be enabled with the “Transaction Data Level” option set as “Level II" on the Processing Terminal. Contact our Support Team to configure this option.
To provide a transaction with LEVEL II, your request needs to add the LEVEL_2_DATA component and its fields, as described below.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
CUSTOMER_REF_NUMBER | N | Text type with max length of 48 characters. This number is defined by the cardmember. It is entered by the merchant at the point of sale. |
TAX_AMOUNT | N | Integer type, with max length of 13 numbers. A value of zero is required in order to indicate tax exempt transactions. |
SHIPPING_ADDRESS | N | A subcomponent with all the data related to the shipping address of a purchase. |
FULL_NAME | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. |
ADDRESS1 | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. |
ADDRESS2 | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. Always optional regardless compulsory setting. |
CITY | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 128 characters. |
REGION | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 128 characters. |
POSTCODE | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 50 characters. |
COUNTRY | N | Subfield of SHIPPING_ADDRESS. Value is text type, with 2 characters. ISO ALPHA-2 Country Code. |
Quick example:
<LEVEL_2_DATA> <CUSTOMER_REF_NUMBER>SDGK-JSAAS-0235.00002314</CUSTOMER_REF_NUMBER> <TAX_AMOUNT>151.27</TAX_AMOUNT> <SHIPPING_ADDRESS> <FULL_NAME>JOHN SMITH AND ASSOCIATES<FULL_NAME> <ADDRESS1>Unit 001, Street X</ADDRESS1> <ADDRESS2>Block "A", Neighborhood "A"</ADDRESS2> <CITY>City "Y"</CITY> <REGION>Region 1 </REGION> <POSTCODE>A00B0001</POSTCODE> <COUNTRY>Country "Z"</COUNTRY> </SHIPPING_ADDRESS> </LEVEL_2_DATA>
ND006 - Level 3 Data Validation
This field is associated with the Enhanced Data (Level II and Level III) feature. “Allow Enhanced Data (Level II and Level III)” must be enabled, with the “Transaction Data Level” option set as “Level III" on the Processing Terminal. Contact our Support Team to configure this option.
To provide a transaction with LEVEL III, your request needs to add the LEVEL_2_DATA (described before) and the LEVEL_3_DATA components and their fields. The LEVEL_3_DATA component fields are described below.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
SUMMARY | N | Subcomponent of Level 3. Agregates the sum of different values within the transaction. |
TOTAL_DISCOUNT_AMOUNT | N | Subfield of SUMMARY. Represents the freight amount applied to the sale. Decimal value, allowing max of 13 digits within min value of 0. |
TOTAL_DUTY_AMOUNT | N | Subfield of SUMMARY. Represents duty applied to the sale. Decimal value, allowing max of 13 digits with min value of 0. |
LINE_ITEMS | N | Subcomponent of Level 3. List of all items in which the sale is broken down. |
LINE_ITEM | N | Subfield of LINE_ITEMS. Holds all the details of a sale's item. You can add as much as necessary to express the breaking down of your sale. |
COMMODITY_CODE | N | Subfield of LINE_ITEM. Item's commodity code, defined for trade tariff. Widely used by corporate purchasing organizations to segment and manage their total spend accross diverse product lines. Defined at government or commercail agreements level. Consult your Acquirer for more details. |
PRODUCT_CODE | N | Subfield of LINE_ITEM. This is the merchant's identifier for the product, also known as Universal Product code (UPC). |
DESCRIPTION | N | Subfield of LINE_ITEM. This is the merchant's description for the product. |
QUANTITY | N | Subfield of LINE_ITEM. Quantity of the specific item for the sale. |
UNIT_OF_MEASURE | N | Subfield of LINE_ITEM. Measure unit used for this specific item type to sell it in parts, units or sets. |
UNIT_PRICE | N | Subfield of LINE_ITEM. Unit price applied for that specific type of item and measure unit, within the sale. |
DISCOUNT_RATE | N | Subfield of LINE_ITEM. A % of discount applied to the item total (quantity x unit price) before taxes. |
TAX_RATE | N | Subfield of LINE_ITEM. A % of tax applied to the item total (quantity x unit price) after discounts. |
TOTAL_AMOUNT | N | Subfield of LINE_ITEM. Final item value based on total (quantity x unit price) after discount and tax applied. |
Quick Example
<LEVEL_2_DATA>...</LEVEL_2_DATA> <LEVEL_3_DATA> <SUMMARY> <TOTAL_DISCOUNT_AMOUNT>61.30</TOTAL_DISCOUNT_AMOUNT> <TOTAL_FREIGHT_AMOUNT>3.50</TOTAL_FREIGHT_AMOUNT> <TOTAL_DUTY_AMOUNT>11.50</TOTAL_DUTY_AMOUNT> </SUMMARY> <LINE_ITEMS> <!-- As many as necessary --> <LINE_ITEM> <COMMODITY_CODE>PDX001</COMMODITY_CODE> <PRODUCT_CODE>DSV1303.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>10</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <UNIT_PRICE>105.50</UNIT_PRICE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>12.50</TAX_RATE> <TOTAL_AMOUNT>1127.53</TOTAL_AMOUNT> </LINE_ITEM> <LINE_ITEM> <COMMODITY_CODE>PDX002</COMMODITY_CODE> <PRODUCT_CODE>DSV1302.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>2</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <UNIT_PRICE>85.50</UNIT_PRICE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>16.00</TAX_RATE> <TOTAL_AMOUNT>188.44</TOTAL_AMOUNT> </LINE_ITEM> </LINE_ITEMS> </LEVEL_3_DATA>
DON'T FORGET
If you are using LEVEL_3_DATA compononent, also add to your request the LEVEL_2_DATA 2 component to attempt a full qualification for enhanced data.
ND007 - Multi Language Support
If you want to provide the customer an email receipt in another language, you can use the Accept-Language parameter of the request to set language the customer should receive the receipt in. If the language provided is not supported, the Payment Gateway will use its default language (EN). Possible values are 'fr-FR' or even 'fr,en-US;q=0.9,en;q=0.8,ru;q=0.7,de;q=0.6,ru-RU;q=0.5,de-DE;q=0.4'.
<?xml version="1.0" encoding="UTF-8"?> <PAYMENT> <ORDERID>115010922465</ORDERID> <TERMINALID>6491002</TERMINALID> <AMOUNT>10</AMOUNT> <CARDNUMBER>4111111111111111</CARDNUMBER> <CARDTYPE>VISA</CARDTYPE> <CARDEXPIRY>0807</CARDEXPIRY> <CARDHOLDERNAME>Joe Bloggs</CARDHOLDERNAME> <CURRENCY>EUR</CURRENCY> <TERMINALTYPE>1</TERMINALTYPE> <TRANSACTIONTYPE>7</TRANSACTIONTYPE> <CVV>214</CVV> <DATETIME>12-06-2006:11:47:04:656</DATETIME> <HASH>d04c3bab519095ecb046eff91722e8df</HASH> </PAYMENT>
<?xml version="1.0" encoding="UTF-8"?> <PAYMENT> <ORDERID>1150109224656</ORDERID> <TERMINALID>6491002</TERMINALID> <AMOUNT>10</AMOUNT> <DATETIME>12-06-2006:11:47:04:656</DATETIME> <CARDNUMBER>4111111111111111</CARDNUMBER> <CARDTYPE>VISA</CARDTYPE> <CARDEXPIRY>0807</CARDEXPIRY> <CARDHOLDERNAME>Joe Bloggs</CARDHOLDERNAME> <HASH>d04c3bab519095ecb046eff91722e8df</HASH> <CURRENCY>EUR</CURRENCY> <FOREIGNCURRENCYINFORMATION> <CARDCURRENCY>GBP</CARDCURRENCY> <CARDAMOUNT>6.67</CARDAMOUNT> <CONVERSIONRATE>0.667157</CONVERSIONRATE> </FOREIGNCURRENCYINFORMATION> <TERMINALTYPE>1</TERMINALTYPE> <TRANSACTIONTYPE>7</TRANSACTIONTYPE> <CVV>214</CVV> </PAYMENT>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
ND008 - Credential on File
This feature is currently available to TSYS Saratoga terminals. The COF tags are required for the following usage:
The fields will have the following behavior: Hidden - the gateway accepts the fields, if sent, and add them to the transaction, but does not show it to the customer.
To provide a transaction with COF, your request needs to add the Credential on File component and its fields, as described below.
(new table below note ND008)
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
ORIGINALBRANDTXIDENTIFIER | N | String, max length is 64, Merchant sends the transaction identifier if received from acquirer. |
STOREDCREDENTIALTXTYPE | N | Possible values: FIRST_TXN_SUBSEQUENT_MERCHANT_INITIATED_TXN or SUBSEQUENT_CARDHOLDER_INITITATED_TXN |
STOREDCREDENTIALUSE | N | Possible values: UNSCHEDULED, INSTALLMENT or RECURRING. |
Quick example:
<?xml version="1.0" encoding="UTF-8"?> <PAYMENT> <ORDERID>CSV_99769707</ORDERID> <TERMINALID>2366006</TERMINALID> <AMOUNT>6.00</AMOUNT> <DATETIME>11-09-2019:14:02:49:708</DATETIME> <CARDNUMBER>4444333322221111</CARDNUMBER> <CARDTYPE>VISA</CARDTYPE> <CARDEXPIRY>1224</CARDEXPIRY> <CARDHOLDERNAME>na</CARDHOLDERNAME> <HASH>f048c44d0340af522d5796110675fb1a</HASH> <CURRENCY>USD</CURRENCY> <TERMINALTYPE>1</TERMINALTYPE> <TRANSACTIONTYPE>1</TRANSACTIONTYPE> <AUTOREADY>Y</AUTOREADY> <CVV>123</CVV> <ADDRESS1>ads</ADDRESS1> <ADDRESS2>ads2</ADDRESS2> <POSTCODE>123</POSTCODE> <CREDENTIALONFILE> <ORIGINALBRANDTXIDENTIFIER>1234567890</ORIGINALBRANDTXIDENTIFIER> <STOREDCREDENTIALTXTYPE>SUBSEQUENT_MERCHANT_INITIATED_TXN</STOREDCREDENTIALTXTYPE> <STOREDCREDENTIALUSE>UNSCHEDULED</STOREDCREDENTIALUSE> </CREDENTIALONFILE> </PAYMENT>
The response body fields will be:
FIELD | DESCRIPTION |
---|---|
UNIQUEREF | Generated reference that should be stored for tracking and remote XML refunding.. |
APPROVALCODE | A six digit AuthCode. |
RESPONSECODE | A: (APPROVED/ AUTHORIZED/ ACCEPTED, respectively). E: (ACCEPTED for later processing, but result currently unknown - specifically for China Union Pay). D: (DECLINED). R: (REFERRED, also considered as PICKUP). C: (PICKUP, also known as Referral A or Referral B). For more details, visit at Transaction Responses. |
RESPONSETEXT | The text of the authorization. |
BANKRESPONSECODE | Only sent on TSYS terminals. The TSYS response code returned in the authorization response. |
AUTHORIZEDAMOUNT | Only sent for specific acquirers. Partial amount authorized for some transactions. |
AVSRESPONSE | The result of the AVS check. Check Transaction Responses. |
CVVRESPONSE | The result of the CVV check. Check Transaction Responses. |
PROCESSINGTERMINAL | If the transaction was performed on a “routing terminal” then this is populated with processing terminal ID that the system selected to process the transaction. |
FRAUDREVIEWRESPONSE | No longer supported. |
ADDITIONAL_FIELD | This field is used to send back data of interest of the merchant received by the gateway during the transaction. See ND003 - Additional Information on Response |
CARDREFERENCE | This field represents the token generated for the Secure Card. It's going to be returned when the Settings related to this payment enable the automatic generation of Secure Cards within a Payment. Take a look at ND004 - Secure Card Auto Registration. |
MERCHANTREF | This field represents the merchant reference that is going to be considered for the token generated for the Secure Card. It's going to be returned when the Settings related to this payment enable the automatic generation of Secure Cards within a Payment. Take a look at ND004 - Secure Card Auto Registration. |
DATETIME | Response date and time for the transaction, created by the bank. Format: YYYY-MM-DDTHH:MM:SS. Note that this is intentionally in a different format to the request timestamp to highlight the fact that it is a different time. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
BRANDTXIDENTIFIER | The gateway returns the transaction identifier received from Acquirer to the merchant in the response if Credential on File is used. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
When using a Single Currency Terminal, the string to generate the HASH field is going to be formed using:
TERMINALID:UNIQUEREF:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:BANKRESPONSECODE:SECRET
When using a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:UNIQUEREF:CURRENCY:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:BANKRESPONSECODE:SECRET
ND003 - Additional Information on Response
This data is going to be sent back only when the Terminal executing the transaction is configured to do so. This configuration can be activated on the Terminal settings by enabling the “Integration” option “Enable original response in XML”. Currently two possible fields can be returned: ACQUIRER_RESPONSE_CODE and ACQUIRER_RESPONSE_TEXT, containing the original code and text from the acquirer's response to the authorization transaction.
ND004 - Secure Card Auto Registration
This field is returned when a secure card is created based on the card data passed in the request. This is only going to happen when the settings on Merchant Portfolio and Terminal align to allow the auto creation and storage of Secure Cards, and the request in place sends the details for a Secure Card (no TRACKDATA). If you are curious and want to know more about the settings, visit the | Important Integration Settings page.
ND005 - Error Handling
If there is an error processing the transaction, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
<?xml version="1.0" encoding="UTF-8"?> <PAYMENTRESPONSE> <UNIQUEREF>JJCVGCTOV3</UNIQUEREF> <RESPONSECODE>A</RESPONSECODE> <RESPONSETEXT>APPROVAL</RESPONSETEXT> <APPROVALCODE>475318</APPROVALCODE> <DATETIME>2005-11-14T12:53:18</DATETIME> <CVVRESPONSE>M</CVVRESPONSE> <HASH>afe4c8b57f3ea0dfee7c8f75fae7e90d</HASH> </PAYMENTRESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Perform credit card pre-authorizations.
Pre-authorization transactions are supported only by certain Acquirers.
Validate if pre-authorization transactions are supported by your acquirer with our support team.
Remember that this type of transaction needs to be complemented by the Pre-Authorization Completion! That can be done also by another request (following section) or directly at the SelfCare System (Merchant Portal).
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
ORDERID | Y | A unique identifier for the order created by the merchant. Maximun of 24 characters. |
TERMINALID | Y | The merchant's terminal ID. |
AMOUNT | Y | The amount of the transaction. A 2 digit decimal or an Integer value for JPY amounts. |
CARDNUMBER | N | Payment card number. Required if TRACKDATA is not being sent. If a SECURECARD is used (in CARDTYPE), this field should include the CARDREFERENCE of the given Secure Card. |
CARDTYPE | Y | Card Type used for the transaction. For more details on this, visit Special Fields and Parameters - Card Types. This field can also include the SECURECARD type, when using a Secure Card to perform the transaction. |
CARDEXPIRY | N | Expiry date of the card. A 4 digit expiry field (MMYY), required if TRACKDATA is not being sent. This field should not be provided if the CARDTYPE is SECURECARD. |
CARDHOLDERNAME | N | The name of the card holder, required if TRACKDATA is not being sent and not using a SecureCard. It should be as displayed on the front of the card. This field should not be provided if the CARDTYPE is SECURECARD. |
CURRENCY | Y | Currency of the transaction. A 3 character code following the ISO 4217 Currency Code. |
FOREIGNCURRENCYINFORMATION | N | Tag contains Dynamic Currency Conversion information. It has to be present in the eDCC enabled transactions. See the next section, ND004 - Using eDCC, for more details on this field. |
TERMINALTYPE | Y | The type of terminal: 1 - MOTO (Mail Order/Telephone Order). 2 - eCommerce. |
TRANSACTIONTYPE | Y | Normally: 4 - MOTO (Mail Order/Telephone Order). 7 - eCommerce. Recurring Payment Flagging: 2 - Specify that this transaction is recurring. This must be accompanied by the RECURRINGTXNREF field or have special permission granted by the Gateway. Not all processors support this transaction type and consultation with the support team should be carried out prior to configuring recurring payment flagging. For First Data Latvia terminal MOTO transactions: 4 - Telephone Order. 9 - Mail Order. If sending XID & CAVV from non Gateway MPI on an eCommerce transaction use: 0 - not applicable. 1 - Single transaction. 2 - Recurring transaction. 3 - Installment payment. 4 - Unknown classification. 7 - Transaction when payment data was transmitted using SSL encryption, or Channel Encrypted. 8 - Transaction in the clear, or Non Secure. |
N | Cardholders e-mail address. If populated, the cardholder will receive an email receipt. This can be overridden by the Terminal Setup settings “Disable Cardholder Receipt”. |
|
CVV | N | The security code entered by the card holder. |
ISSUENO | N | The issue no. of the card (Solo). |
ADDRESS1 | N | The first address. Required for AVS. |
ADDRESS2 | N | Second line of address. Required for AVS. Same as ADDRESS1. |
POSTCODE | N | Post code for the address. Required for AVS. Required for MaxMind MinFraud fraud scoring complementary service. |
DESCRIPTION | N | A description of the transaction. |
CITY | N | City of the address. Required for MaxMind MinFraud fraud scoring complementary service. |
REGION | N | Region of the address. Required for MaxMind MinFraud fraud scoring complementary service. |
COUNTRY | N | Country code for the address. Following the ISO 3166-1-alpha-2 Country Code. Required for MaxMind MinFraud fraud scoring complementary service. |
IPADDRESS | N | Recommended inclusion. Useful for tracking customers. Functionality will expand in the future. Required for MaxMind MinFraud fraud scoring. |
LEVEL_2_DATA | N | Component of the request that can be added in case the Level II Data feature is in use for the Terminal processing the Payment. See ND005 - Level II Data Validation. |
FRAUDREVIEWSESSIONID | N | No longer supported. |
CUSTOMFIELD'N' | N | Any of the available Custom Fields for the Terminal. Their values are going to be stored and can be used by the Payment Gateway later on. Their values are going to be stored and used by the Payment Gateway for the requests sent to the Receipt URL and the Validation URL. To understand more visit the section regarding Special Fields and Parameters. Limited to 30 custom fields in this request. |
RECURRINGTXNREF | N | Should be set to the value of a UNIQREREF returned in a Payment response for a matching card. TRANSACTIONTYPE should be set to '2'. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
CREDENTIALONFILE | N | Component of the request that can be added in case Credential on File feature is in use for the terminal processing the payment. See ND008 - Credential on File. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
When using a Single Currency Terminal, the string to generate the HASH field is going to be formed using:
TERMINALID:ORDERID:AMOUNT:DATETIME:SECRET
When using a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:ORDERID:CURRENCY:AMOUNT:DATETIME:SECRET
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
ND004 - Using eDCC
All eDCC enabled XML requests must include the FOREIGNCURRENCYINFORMATION tag and its nested tags.
PARAMETER NAME | REQUIRED | DESCRIPTION |
---|---|---|
CARDCURRENCY | Y | Card's currency code. |
CARDAMOUNT | Y | Amount which is supposed to be charged in the home currency. |
CONVERSIONRATE | Y | Value received in the Conversion Rate request should be there. Processing bank (EuroConex) will decline the transaction if wrong rate will be there. |
Those fields can be obtained by using the eDCC Exchange Rate feature.
ND005 - Level II Data Validation
This field is associated with the feature “Level II Data”, and to be used it is necessary to set the “Allow Level II Data” option on a/the Processing Terminal “Features” section.
To provide a transaction with LEVEL II, your request needs to add the LEVEL_2_DATA component and its fields, as described below.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
CUSTOMER_REF_NUMBER | N | Text type with max length of 48 characters. This number is defined by the cardmember. It is entered by the merchant at the point of sale. |
TAX_AMOUNT | N | Integer type, with max length of 13 numbers. A value of zero is required in order to indicate tax exempt transactions. |
SHIPPING_ADDRESS | N | A subcomponent with all the data related to the shipping address of the purchase. |
FULL_NAME | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. |
ADDRESS1 | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. |
ADDRESS2 | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. Always optional regardless compulsory setting. |
CITY | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 128 characters. |
REGION | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 128 characters. |
POSTCODE | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 50 characters. |
COUNTRY | N | Subfield of SHIPPING_ADDRESS. Value is text type, with 2 characters. ISO ALPHA-2 Country Code. |
Quick Example:
<LEVEL_2_DATA> <CUSTOMER_REF_NUMBER>SDGK-JSAAS-O235.00002314</CUSTOMER_REF_NUMBER> <TAX_AMOUNT>151.27</TAX_AMOUNT> <SHIPPING_ADDRESS> <FULL_NAME>JOHN SMITH AND ASSOCIATEDS</FULLNAME> <ADDRESS1>Unit 001, Street X</ADDRESS1> <ADDRESS2>Block "A", Neighborhood "A"</ADDRESS2> <CITY>City "Y"</CITY> <REGION>Region 1<REGION> <POSTCODE>A00B0001</POSTCODE> <COUNTRY>Country "Z"</COUNTRY> </SHIPPING_ADDRESS> </LEVEL_2_DATA>
ND006 - Level 3 Data Validation
This field is associated with the Enhanced Data (Level II and Level III) feauture, and to be used it is necessary to have the “Allow Enhanced Data (Level II and Level III)” enabled with the “Transaction Data Level” option set as “Level III" on the Processing Terminal. Contact our Support Team to configure this option.
To provide a transaction with LEVEL III, your request needs to add the LEVEL_2_DATA (described before) and the LEVEL_3_DATA components and their fields. The LEVEL_3_DATA component fields are described below.
FIELD | REQUIRED | DESCRIPTION | |
---|---|---|---|
SUMMARY | N | Subcomponent of Level 3. Aggregates the sums of different values within the transaction. | |
TOTAL_DISCOUNT_AMOUNT | N | Subfield of SUMMARY. Represents the total value assigned as discount to the sale. That considers the resulting sum from all items' discount rates (unit price x quantity x discount rate) and any other additional discount applied after that. Decimal value allowing max of 13 digits with min value of 0. | |
TOTAL_FREIGHT_AMOUNT | N | Subfield of SUMMARY. Represents the freight amount applied to the sale. Decimal value, allowing a max of 13 digits with min value of 0. |
|
TOTAL_DUTY_AMOUNT | N | Subfield of SUMMARY. Represents the duty amount applied to the sale. Decimal value, allowing max of 13 digits with min value of 0. | |
LINE_ITEMS | N | Subcomponent of Level 3. List of all items in which the sale is broken down. | |
LINE_ITEM | N | Subfield of LINE ITEMS. Holds all the details of a sale's item. You can add as much as necessary to express the break down of your sale. | |
COMMODITY_CODE | N | Subfield of LINE_ITEM. Item's commodity code, defined for trade tarrif. Widely used by corporate purchasing organizations to segment and manage their total spend across diverse product lines. Defined at government or commercial agreement levels. Consult your Acquirer fir nire details. | |
PRODUCT_CODE | N | Subfield of LINE_ITEM. This is the mercahnt's identifier for their product, also known as Universal Product code (UPC). | |
DESCRIPTION | N | Subfield of LINE_ITEM. This is the merchant's description of the product. | |
QUANTITY | N | Subfield of LINE_ITEM. Quantity of the specific item for sale. | |
UNIT_OF_MEASURE | N | Subfield of LINE_ITEM. Measure unit used for this pecific item type to sell it in parts, units or sets. | |
UNIT_PRICE | N | Subfield of LINE_ITEM. Unit price applied to this specific type of item and measure unit within the sale. | |
DISCOUNT_RATE | N | Subfiend of LINE_ITEM. A % of discount applied to the total (item quantity x unit price) before taxes. | |
TAX_RATE | N | Subfield of LINE_ITEM. A % of tax applied to the total (item quantity x unit price) after discounts. | |
TOTAL_AMOUNT | N | Subfield of LINE_ITEM. Final item based on total (quantiy x unit price), after discount and tax applied |
Quick example:
<LEVEL_2_DATA>...</LEVEL_2_DATA> <LEVEL_3_DATA> <SUMMARY> <TOTAL_DISCOUNT_AMOUNT>61.30</TOTAL_DISCOUNT_AMOUNT> <TOTAL_FREIGHT_AMOUNT>3.50</TOTAL_FREIGHT_AMOUNT> <TOTAL_DUTY_AMOUNT>11.50</TOTAL_DUTY_AMOUNT> </SUMMARY> <LINE_ITEMS> <! -- As many as necessary --> <LINE_ITEM> <COMMODITY_CODE>PDX001</COMMODITY_CODE> <PRODUCT_CODE>DSV1303.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>10</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>12.50</TAX_RATE> <TOTAL_AMOUNT>1127.53</TOTAL_AMOUNT> </LINE_ITEM> <LINE_ITEM> <COMMODITY_CODE>PDX002</COMMODITY_CODE> <PRODUCT_CODE>DSV1302.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>2</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>16.00</TAX_RATE> <TOTAL_AMOUNT>188.44</TOTAL_AMOUNT> </LINE_ITEM> </LINE_ITEMS> <LEVEL_3_DATA>
DON'T FORGET If you are using LEVEL_3_DATA component, also add to your request the LEVEL_2_DATA 2 component to attempt a full qualification for enhanced data.
ND007 - Multi Language Support
If you want to provide the customer an email receipt in another language, you can use the Accept-Language parameter of the request to set language the customer should receive the receipt in. If the language provided is not supported, the Payment Gateway will use its default language (EN). Possible values are 'fr-FR' or even 'fr,en-US;q=0.9,en;q=0.8,ru;q=0.7,de;q=0.6,ru-RU;q=0.5,de-DE;q=0.4'
<?xml version="1.0" encoding="UTF-8"?> <PREAUTH> <ORDERID>100028374319</ORDERID> <TERMINALID>6491999</TERMINALID> <AMOUNT>15.62</AMOUNT> <DATETIME>18-12-2008:09:24:16:105</DATETIME> <CARDNUMBER>4111111111111111</CARDNUMBER> <CARDTYPE>VISA</CARDTYPE> <CARDEXPIRY>1109</CARDEXPIRY> <CARDHOLDERNAME>Joe Bloggs</CARDHOLDERNAME> <HASH>9c58e8d7ff9eb98db4ece2af75dec6ae</HASH> <CURRENCY>EUR</CURRENCY> <TERMINALTYPE>1</TERMINALTYPE> <TRANSACTIONTYPE>7</TRANSACTIONTYPE> <CVV>214</CVV> </PREAUTH>
<?xml version="1.0" encoding="UTF-8"?> <PREAUTH> <ORDERID>100028374319</ORDERID> <TERMINALID>6491002</TERMINALID> <AMOUNT>15.62</AMOUNT> <DATETIME>18-12-2008:09:24:16:105</DATETIME> <CARDNUMBER>4111111111111111</CARDNUMBER> <CARDTYPE>VISA</CARDTYPE> <CARDEXPIRY>1109</CARDEXPIRY> <CARDHOLDERNAME>Joe Bloggs</CARDHOLDERNAME> <HASH>9c58e8d7ff9eb98db4ece2af75dec6ae</HASH> <CURRENCY>EUR</CURRENCY> <FOREIGNCURRENCYINFORMATION> <CARDCURRENCY>GBP</CARDCURRENCY> <CARDAMOUNT>10.42</CARDAMOUNT> <CONVERSIONRATE>0.667157</CONVERSIONRATE> </FOREIGNCURRENCYINFORMATION> <TERMINALTYPE>1</TERMINALTYPE> <TRANSACTIONTYPE>7</TRANSACTIONTYPE> <CVV>214</CVV> </PREAUTH>
ND008 - Credential on File
This feature is current available to TSYS Saratoga terminals. The COF tags are required for the following usage:
The fields will have the following behavior: Hidden - the gateway accepts, if sent, and adds them to the transaction, but does not show it for the customer.
To provide a transaction with COF, your request needs to add the Credentials on File component and its fields, as described below.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
ORIGINALBRANDTXIDENTIFIER | N | String, max length is 64, Merchant send the transaction if received from acquirer. |
STOREDCREDENTIALTXTYPE | N | Possible values: FIRST_TXN, SUBSEQUENT_MERCHANT_INITIATED_TXN or SUBSEQUENT_CARDHOLDER_INITIATED_TXN |
STOREDCREDENTIALUSE | N | Possible values: UNSCHEDULED, INSTALLMENT or RECURRING |
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Quick Example:
<?xml version="1.0" encoding="UTF-8"?> <PAYMENT> <ORDERID>CSV_99769707</ORDERID> <TERMINALID>2366006</TERMINALID> <AMOUNT>6.00</AMOUNT> <DATETIME>11-09-2019:14:02:49:708</DATETIME> <CARDNUMBER>4444333322221111</CARDNUMBER> <CARDTYPE>VISA</CARDTYPE> <CARDEXPIRY>1224</CARDEXPIRY> <CARDHOLDERNAME>na</CARDHOLDERNAME> <HASH>f048c44d0340af522d5796110675fb1a</HASH> <CURRENCY>USD</CURRENCY> <TERMINALTYPE>1</TERMINALTYPE> <TRANSACTIONTYPE>1</TRANSACTIONTYPE> <AUTOREADY>Y</AUTOREADY> <CVV>123</CVV> <ADDRESS1>ads</ADDRESS1> <ADDRESS2>ads2</ADDRESS2> <POSTCODE>123</POSTCODE> <CREDENTIALONFILE> <ORIGINALBRANDTXIDENTIFIER>1234567890</ORIGINALBRANDTXIDENTIFIER> <STOREDCREDENTIALTXTYPE>SUBSEQUENT_MERCHANT_INITIATED_TXN</STOREDCREDENTIALTXTYPE> <STOREDCREDENTIALUSE>UNSCHEDULED</STOREDCREDENTIALUSE> </CREDENTIALONFILE> </PAYMENT>
The response body fields will be:
FIELD | DESCRIPTION |
---|---|
UNIQUEREF | Generated reference that should be stored for tracking and remote XML refunding. Also used for pre-auth completion, in case the unique ref configuration is enabled. |
APPROVALCODE | A six digit AuthCode. |
RESPONSECODE | A: (APPROVED/ AUTHORIZED/ ACCEPTED, respectively). E: (ACCEPTED for later processing, but result currently unknown - specifically for China Union Pay). D: (DECLINED). R: (REFERRED, also considered as PICKUP). C: (PICKUP, also known as Referral A or Referral B). For more details, visit at Transaction Responses. |
RESPONSETEXT | The text of the authorization. |
BANKRESPONSECODE | Only sent on TSYS terminals. The TSYS response code returned in the authorization response. |
AVSRESPONSE | The result of the AVS check. Check Transaction Responses. |
CVVRESPONSE | The result of the CVV check. Check Transaction Responses. |
PROCESSINGTERMINAL | If the transaction was performed on a “routing terminal” then this is populated with processing terminal ID that the system selected to process the transaction. |
FRAUDREVIEWRESPONSE | No longer supported. |
ADDITIONAL_FIELD | This field is used to send back data of interest of the merchant received by the gateway during the transaction. See ND003 - Additional Information on Response |
CARDREFERENCE | This field represents the token generated for the Secure Card. It's going to be returned when the Settings related to this payment enable the automatic generation of Secure Cards within a Payment. Take a look at ND004 - Secure Card Auto Registration. |
MERCHANTREF | This field represents the merchant reference that is going to be considered for the token generated for the Secure Card. It's going to be returned when the Settings related to this payment enable the automatic generation of Secure Cards within a Payment. Take a look at ND004 - Secure Card Auto Registration. |
DATETIME | Response date and time for the transaction, created by the bank. Format: YYYY-MM-DDTHH:MM:SS. Note that this is intentionally in a different format to the request timestamp to highlight the fact that it is a different time. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
BRANDTXIDENTIFIER | The gateway returns the transaction identifier received from Acquirer to the merchant in the response if Credential on File is used. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
When using a Single Currency Terminal, the string to generate the HASH field is going to be formed using:
TERMINALID:UNIQUEREF:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:BANKRESPONSECODE:SECRET
When using a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:UNIQUEREF:CURRENCY:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:BANKRESPONSECODE:SECRET
ND003 - Additional Information on Response
This data is going to be sent back only when the Terminal executing the transaction is configured to do so. This configuration can be activated on the Terminal settings by enabling the “Integration” option “Enable original response in XML”. Currently two possible fields can be returned: ACQUIRER_RESPONSE_CODE and ACQUIRER_RESPONSE_TEXT, containing the original code and text from the acquirer's response to the authorization transaction.
ND004 - Secure Card Auto Registration
This field is returned when a secure card is created based on the card data passed in the request. This is only going to happen when the settings on Merchant Portfolio and Terminal align to allow the auto creation and storage of Secure Cards, and the request in place sends the details for a Secure Card (no TRACKDATA). If you are curious and want to know more about the settings, visit the | Important Integration Settings page.
ND005 - Error Handling
If there is an error processing the transaction, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
<?xml version="1.0" encoding="UTF-8"?> <PREAUTHRESPONSE> <UNIQUEREF>JJCVGCTOV3</UNIQUEREF> <APPROVALCODE>475318</APPROVALCODE> <RESPONSECODE>A</RESPONSECODE> <RESPONSETEXT>APPROVAL</RESPONSETEXT> <PROCESSINGTERMINAL>6491002</PROCESSINGTERMINAL> <DATETIME>2008-12-18T09:24:17</DATETIME> <HASH>afe4c8b57f3ea0dfee7c8f75fae7e90d</HASH> </PREAUTHRESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Perform completions of pre-authorizations.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
UNIQUEREF | Y | Refers the UNIQUEREF generate for the original pre-autorization. In case the unique ref configuration is enabled, it's mandatory, otherwise, the system is going to accept the original ORDERID used for the pre-authorization. |
TERMINALID | Y | The merchant's terminal ID. |
AMOUNT | Y | The amount of the transaction. A 2 digit decimal or an Integer value for JPY amounts. |
FOREIGNCURRENCYINFORMATION | N | Tag contains Dynamic Currency Conversion information. It has to be present in the eDCC enabled transactions. See the next section, ND003 - Using eDCC, for more details on this field. |
DESCRIPTION | N | A description of the transaction. |
CVV | N | The security code entered by the card holder. It should be available when CVV is enabvled for the terminal and completing out of the 15% margin transaction. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
TERMINALID:UNIQUEREF:AMOUNT:DATETIME:SECRET
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
ND003 - Using eDCC
All eDCC enabled XML requests must include the FOREIGNCURRENCYINFORMATION tag and its nested tags.
PARAMETER NAME | REQUIRED | DESCRIPTION |
---|---|---|
CARDCURRENCY | Y | Card's currency code. |
CARDAMOUNT | Y | Amount which is supposed to be charged in the home currency. |
CONVERSIONRATE | Y | Value received in the Conversion Rate request should be there. Processing bank (EuroConex) will decline transaction if wrong rate will be there. |
Those fields can be obtained by using the eDCC Exchange Rate feature.
<?xml version="1.0" encoding="UTF-8"?> <PREAUTHCOMPLETION> <UNIQUEREF>JJCVGCTOV3</UNIQUEREF> <TERMINALID>6491002</TERMINALID> <AMOUNT>12.31</AMOUNT> <DATETIME>19-12-2008:14:47:51:307</DATETIME> <CVV>785</CVV> <HASH>ff2e84856d7debbf07d3dfeffad5898c</HASH> </PREAUTHCOMPLETION>
<?xml version="1.0" encoding="UTF-8"?> <PREAUTHCOMPLETION> <UNIQUEREF>JJCVGCTOV3</UNIQUEREF> <TERMINALID>1001</TERMINALID> <AMOUNT>22.38</AMOUNT> <FOREIGNCURRENCYINFORMATION> <CARDCURRENCY>GBP</CARDCURRENCY> <CARDAMOUNT>14.93</CARDAMOUNT> <CONVERSIONRATE>0.667157</CONVERSIONRATE> </FOREIGNCURRENCYINFORMATION> <DATETIME>19-12-2008:14:47:51:307</DATETIME> <CVV>785</CVV> <HASH>ff2e84856d7debbf07d3dfeffad5898c</HASH> </PREAUTHCOMPLETION>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
FIELD | DESCRIPTION |
---|---|
UNIQUEREF | Generated reference that should be stored for tracking and remote XML refunding. Also used for pre-auth completion, in case the unique ref configuration is enabled. |
APPROVALCODE | A six digit AuthCode. |
RESPONSECODE | A: (APPROVED/ AUTHORIZED/ ACCEPTED, respectively). E: (ACCEPTED for later processing, but result currently unknown - specifically for China Union Pay). D: (DECLINED). R: (REFERRED, also considered as PICKUP). C: (PICKUP, also known as Referral A or Referral B). For more details, visit at Transaction Responses. |
RESPONSETEXT | The text of the authorization. |
AVSRESPONSE | The result of the AVS check. Check Transaction Responses. |
CVVRESPONSE | The result of the CVV check. Check Transaction Responses. |
PROCESSINGTERMINAL | If the transaction was performed on a “routing terminal” then this is populated with processing terminal ID that the system selected to process the transaction. |
DATETIME | Response date and time for the transaction, created by the bank. Format: YYYY-MM-DDTHH:MM:SS. Note that this is intentionally in a different format to the request timestamp to highlight the fact that it is a different time. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
When using a Single Currency Terminal, the string to generate the HASH field is going to be formed using:
TERMINALID:UNIQUEREF:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:SECRET
When using a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:UNIQUEREF:CURRENCY:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:SECRET
ND002 - Error Handling
If there is an error processing the transaction, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
<?xml version="1.0" encoding="UTF-8"?> <PREAUTHCOMPLETIONRESPONSE> <UNIQUEREF>JJCVGCTOV3</UNIQUEREF> <RESPONSECODE>A</RESPONSECODE> <RESPONSETEXT>APPROVAL</RESPONSETEXT> <APPROVALCODE>515658</APPROVALCODE> <DATETIME>2008-12-18T14:47:51</DATETIME> <HASH>93527dbb00534a4b33546161aefe5222</HASH> </PREAUTHCOMPLETIONRESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Used to add an offline transaction (ex: a voice authorized transaction) to the batch. This is also known as a Force Capture.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
ORDERID | Y | A unique identifier for the order created by the merchant. Maximun of 24 characters. |
TERMINALID | Y | The merchant's terminal ID. |
AMOUNT | Y | The amount of the transaction. A 2 digit decimal or an Integer value for JPY amounts. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
TRACKDATA | N | Track 2 data. Should be present for a swiped cardholder present (CHP) transaction. If this is present then TERMINALTYPE should be set to 3 and TRANSACTIONTYPE should be set to 0. |
CARDNUMBER | N | Payment card number. Required if TRACKDATA is not being sent. If a SECURECARD is used (in CARDTYPE), this field should include the CARDREFERENCE of the given Secure Card. |
CARDTYPE | Y | Card Type used for the transaction. For more details on this, visit Special Fields and Parameters - Card Types. This field can also include the SECURECARD type, when using a Secure Card to perform the transaction. |
CARDEXPIRY | N | Expiry date of the card. A 4 digit expiry field (MMYY), required if TRACKDATA is not being sent. This field should not be provided if the CARDTYPE is SECURECARD. |
CARDHOLDERNAME | N | The name of the card holder, required if TRACKDATA is not being sent and not using a SecureCard. It should be as displayed on the front of the card. This field should not be provided if the CARDTYPE is SECURECARD. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given aat the ND001 - Hash Formation, in the next section. |
CURRENCY | Y | Currency of the transaction. A 3 character code following the ISO 4217 Currency Code. |
FOREIGNCURRENCYINFORMATION | N | Tag contains Dynamic Currency Conversion information. It has to be present in the eDCC enabled transactions. See the next section, ND003 - Using eDCC, for more details on this field. |
TERMINALTYPE | Y | The type of terminal: 1 - MOTO (Mail Order/Telephone Order). 2 - eCommerce. 3 - Cardholder Present. |
TRANSACTIONTYPE | Y | Normally: 0 - Cardholder Present (CHP) transaction. 4 - MOTO (Mail Order/Telephone Order). 7 - eCommerce. Recurring Payment Flagging: 2 - Specify that this transaction is recurring. This must be accompanied by the RECURRINGTXNREF field or have special permission granted by the Gateway. Not all processors support this transaction type and consultation with the support team should be carried out prior to configuring recurring payment flagging. For First Data Latvia terminal MOTO transactions: 4 - Telephone Order. 9 - Mail Order. If sending XID & CAVV from non Gateway MPI on an eCommerce transaction use: 0 - not applicable. 1 - Single transaction. 2 - Recurring transaction. 3 - Installment payment. 4 - Unknown classification. 7 - Transaction when payment data was transmitted using SSL encryption, or Channel Encrypted. 8 - Transaction in the clear, or Non Secure. |
AUTOREADY | N | Y or N. If this is set to Y the Gateway will automatically set the transaction to READY in the batch. If set to N then the transaction will go to a PENDING status. If not present the terminal default will be used. |
N | Cardholder's e-mail address. If populated, the cardholder will receive an email receipt. This can be overridden by the Terminal Setup settings “Disable Cardholder Receipt”. |
|
ADDRESS1 | N | The first address. Required for AVS. |
ADDRESS2 | N | Second line of address. Required for AVS. Same as ADDRESS1. |
POSTCODE | N | Post code for the address. Required for AVS. Required for MaxMind MinFraud fraud scoring complementary service. |
BILLTOFIRSTNAME | N | First name of the “Bill To” part of a sale |
BILLTOLASTNAME | N | Last name of the “Bill To” part of a sale |
DESCRIPTION | N | A description of the transaction. |
MOBILENUMBER | N | Used for SMS receipts. International format, numeric only. |
DEVICEID | N | The unique identifier string for a connecting device. Mandatory for non-server based devices such as handheld devices/cash register etc. |
PHONE | N | Card Holder Phone Number stored against transaction. International format, numeric only. |
CITY | N | City of the address. Required for MaxMind MinFraud fraud scoring complementary service. |
REGION | N | Region of the address. Required for MaxMind MinFraud fraud scoring complementary service. |
COUNTRY | N | Country code for the address. Following the ISO 3166-1-alpha-2 Country Code. Required for MaxMind MinFraud fraud scoring complementary service. |
IPADDRESS | N | Recommended inclusion. Useful for tracking customers. Functionality will expand in the future. Required for MaxMind MinFraud fraud scoring. |
SIGNATURE | N | Optional field if processing Cardholder Present (CHP) transactions using the TRACKDATA field. For format, visit Special Fields and Parameters. |
CUSTOMFIELD'N' | N | Any of the available Custom Fields for the Terminal. Their values are going to be stored and can be used by the Payment Gateway later on. To understand more visit the section regarding Special Fields and Parameters. Limited to 30 custom fields in this request. |
LEVEL_2_DATA | N | Component of the request that can be added in case the Level II Data feature is in use for the Terminal processing the Payment. See ND004 - Level II Data Validation. |
LEVEL_3_DATA | N | Component of the request can be added in case the Level 3 Data feature is in use for the Terminal processing the Payment. See ND005 - Level 3 Data Validation. |
ENHANCED_DATA_TEMPLATE | N | Enhanced Data template name to be used when creating the transaction. It fills up any not provided transaction's enhanced data fields. Note that if you use a template, but send the data during the request, the gateway is just going to use the template to fill the gaps of whatever you didn't send in your original request. Also, if you send at least one item in LEVEL_3_DATA component, no item from the template is going to be applied. This field should only be used if you desire to use one of your Enhanced Data Templates (see Enhanced Data Templates for more details.) This field is only available for terminals with the Enhanced Data (Level II and Level III) feature enabled. |
APPROVALCODE | Y | Approval code provided by the Acquirer for the specific transaction |
CREDENTIALONFILE | Y | Component of the request that can be added in case Credential on File feature is in use for the Terminal processing the Payment. See ND008 - Credential on File. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
When using a Single Currency Terminal, the string to generate the HASH field is going to be formed using:
TERMINALID:ORDERID:AMOUNT:DATETIME:SECRET
When using a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:ORDERID:CURRENCY:AMOUNT:DATETIME:SECRET
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
ND003 - Using eDCC
All eDCC enabled XML requests must include the FOREIGNCURRENCYINFORMATION tag and its nested tags.
PARAMETER NAME | REQUIRED | DESCRIPTION |
---|---|---|
CARDCURRENCY | Y | Card's currency code. |
CARD AMOUNT | Y | Amount which is supposed to be charged in the home currency. |
CONVERSIONRATE | Y | Value received in the Conversion Rate request should be there. Processing bank (EuroConex) will decline transaction if the wrong rate will be there. |
Those fields can be obtained by using the eDCC Exchange Rate feature.
ND004 - Level II Data Validation
This field is associated with the Enhanced Data (Level II and Level III) feature, “Allow Enhanced Data (Level II and Level III)” must be enabled with the “Transaction Data Level” option set as “Level II" on the Processing Terminal. Contact our Support Team to configure this option.
This field is associated with the feature “Level II Data”, and to be used it is necessary to set the “Allow Level II Data” option on the Processing Terminal “Features” section.
To provide a transaction with LEVEL II, your request needs to add the LEVEL_2_DATA component and its fields, as described below.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
CUSTOMER_REF_NUMBER | N | Text type with max length of 48 characters. This number is defined by the cardmember. It is entered by the merchant at the point of sale. |
TAX_AMOUNT | N | Integer type, with max length of 13 numbers. A value of zero is required in order to indicate tax exempt transactions. |
SHIPPING_ADDRESS | N | A subcomponent with all data related to the shipping address of a purchase. |
FULL_NAME | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. |
ADDRESS1 | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. |
ADDRESS2 | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. Always optional regardless compulsory setting. |
CITY | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 128 characters. |
REGION | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 128 characters. |
POSTCODE | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 50 characters. |
COUNTRY | N | Subfield of SHIPPING_ADDRESS. Value is text type, with 2 characters. ISO ALPHA-2 Country Code. |
Quick example:
<LEVEL_2_DATA> <CUSTOMER_REF_NUMBER>SDGK-JSAAS-0235.00002314</CUSTOMER_REF_NUMBER> <TAX_AMOUNT>151.27</TAX_AMOUNT> <SHIPPING_ADDRESS> <FULL_NAME>JOHN SMITH AND ASSOCIATES</FULL_NAME> <ADDRESS1>UNIT 001, Street X</ADDRESS1> <ADDRESS2>Block "A", Neighborhood "A"</ADDRESS2> <CITY>City "Y"</CITY> <REGION>Region 1</REGION> <POSTCODE>A00B0001</POSTCODE> <COUNTRY>Country "Z"</COUNTRY> </SHIPPING_ADDRESS> </LEVEL_2_DATA>
ND005 - Level 3 Data Validation This field is associated with the Enhanced Data (Level II and Level III) feauture.“Allow Enhanced Data (Level II and Level III)” must be enabled with the “Transaction Data Level” option set as “Level III" on the Processing Terminal. Contact our Support Team to configure this option.
To provide a transaction with LEVEL III, your request needs to add the LEVEL_2_DATA (described before) and the LEVEL_3_DATA components and their fields. The LEVEL_3_DATA component fields are described below.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
SUMMARY | N | Subcomponent of Level 3. Aggregates the sums of different values within the transaction. |
TOTAL_DISCOUNT_AMOUNT | N | Subfield of SUMMARY. Represents the total value assigned as discount to the sale. That considers the resulting sum from all items' discounts rates (unit price x quantity x discount rate) and any other additional discount applied after that. Decimal value, allowing max of 13 digits with min value of 0. |
TOTAL_FREIGHT_AMOUNT | N | Subfield of SUMMARY. Represents the freight amount applied to the sale. Decimal value, allowing max of 13 digits with min value of 0. |
TOTAL_DUTY_AMOUNT | N | Subfield of SUMMARY. Represents duty amount applied to the sale. Decimal value, allowing max of 13 digits with min value of 0. |
LINE_ITEMS | N | |
LINE_ITEM | N | Subfield of LINE_ITEMS. Holds all the details of a sale's item. You can add as much as necessary to express the break down of your sale. |
COMMODITY_CODE | N | Subfield of LINE_ITEM. Item's commodity code, defined for trade tariff. Widely used by corporate purchasing organizations to segment and manage their total spend across diverse product lines. Defined at government or commercial agreement level. Consult your Acquirer for more details. |
PRODUCT_CODE | N | Subfield of LINE_ITEM. This is the merchant's identifier for the product, also known as Universal Product code (UPC). |
DESCRIPTION | N | Subfield of LINE_ITEM. This is the merchant's description of the product. |
QUANTITY | N | |
UNIT_OF_MEASURE | N | Subfield of LINE_ITEM. Measure unit used for this specific item type to sell it in parts, units or sets. |
UNIT_PRICE | N | Subfield of LINE_ITEM. Unit price applied for that specific type of item and measure unit within the sale. |
DISCOUNT_RATE | N | Subfield of LINE_ITEM. A % of discount applied to the item total (quantity x unit price) before taxes. |
TAX_RATE | N | Subfield of LINE_ITEM. A % of tax applied to the item total (quantity x unit price) after discounts. |
TOTAL_AMOUNT | N | Subfield of LINE_ITEM. Final item value based on total (quantity x unit price), after discount and tax applied. |
Quick example:
<LEVEL_2_DATA>...</LEVEL_2_DATA> <LEVEL_3_DATA> <SUMMARY> <TOTAL_DISCOUNT_AMOUNT>61.30</TOTAL_DISCOUNT_AMOUNT> <TOTAL_FREIGHT_AMOUNT>3.50</TOTAL_FREIGHT_AMOUNT> <TOTAL_DUTY_AMOUNT>11.50</TOTAL_DUTY_AMOUNT> </SUMMARY> <LINE_ITEMS> <! -- As many as necessary --> <LINE_ITEM> <COMMODITY_CODE>PDX001</COMMODITY_CODE> <PRODUCT_CODE>DSV1303.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>10</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <UNIT_PRICE>105.50</UNIT_PRICE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>12.50</TAX_RATE> <TOTAL_AMOUNT>1127.53</TOTAL_AMOUNT> </LINE_ITEM> <LINE_ITEM> <COMMODITYCODE>PDX002</COMMODITY_CODE> <PRODUCT_CODE>DSV1302.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>2</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <UNIT_PRICE>85.50</UNIT_PRICE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>16.00</TAX_RATE> <TOTAL_AMOUNT>188.44</TOTAL_AMOUNT> </LINE_ITEM> </LINE_ITEMS> </LEVEL_3_DATA>
DON'T FORGET If you are using LEVEL_3_DATA component, also add yo your request the LEVEL_2_DATA 2 component to attempt a full qualification for enhanced data.
ND008 - Credential on File
This feature is currently available to TSYS Saratoga terminals. The COF tags are required for the following usage:
The fields will have the following behavior: Hidden - the gateway accepts the fields, if sent, and adds them to the transaction, but does not show it for the customer.
(new table below note ND008)
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
ORIGNALBRANDIXIDENTIFIER | N | String, max length is 64, Merchant sends the transaction identifier if received from acquirer. |
STOREDCREDENTIALTXTYPE | N | Possible values: FIRST_TXN, SUBSEQUENT_MERCHANT_INITIATED_TXN or SUBSEQUENT_CARDHOLDER_INITIATED_TXN |
STOREDCREDENTIALUSE | N | Possible values: UNSCHEDULED, INSTALLMENT or RECURRING |
The response body fields will be:
FIELD | DESCRIPTION |
---|---|
UNIQUEREF | Generated reference that should be stored for tracking and remote XML refunding.. |
APPROVALCODE | A six digit AuthCode. |
RESPONSECODE | A: (APPROVED/ AUTHORIZED/ ACCEPTED, respectively). E: (ACCEPTED for later processing, but result currently unknown - specifically for China Union Pay). D: (DECLINED). R: (REFERRED, also considered as PICKUP). C: (PICKUP, also known as Referral A or Referral B). For more details, visit at Transaction Responses. |
RESPONSETEXT | The text of the authorization. |
BANKRESPONSECODE | Only sent on TSYS terminals. The TSYS response code returned in the authorization response. |
MASKEDCARDNUMBER | Customer's card obfuscated card number. |
PROCESSINGTERMINAL | If the transaction was performed on a “routing terminal” then this is populated with processing terminal ID that the system selected to process the transaction. |
CARDREFERENCE | This field represents the token generated for the Secure Card. It's going to be returned when the Settings related to this payment enable the automatic generation of Secure Cards within a Payment. Take a look at ND004 - Secure Card Auto Registration. |
ADDITIONAL_FIELD | This field is used to send back data of interest of the merchant received by the gateway during the transaction. See ND002 - Additional Information on Response |
MERCHANTREF | This field represents the merchant reference that is going to be considered for the token generated for the Secure Card. It's going to be returned when the Settings related to this payment enable the automatic generation of Secure Cards within a Payment. Take a look at ND003 - Secure Card Auto Registration. |
DATETIME | Response date and time for the transaction, created by the bank. Format: YYYY-MM-DDTHH:MM:SS. Note that this is intentionally in a different format to the request timestamp to highlight the fact that it is a different time. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
BRANDTXIDENTIFIER | The gateway returns the transaction identifier received from Acquirer to the merchant in the response if Credential on File is used. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
When using a Single Currency Terminal, the string to generate the HASH field is going to be formed using:
TERMINALID:UNIQUEREF:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:BANKRESPONSECODE:SECRET
When using a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:UNIQUEREF:CURRENCY:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:BANKRESPONSECODE:SECRET
ND002 - Additional Information on Response
This data is going to be sent back only when the Terminal executing the transaction is configured to do so. This configuration can be activated on the Terminal settings by enabling the “Integration” option “Enable original response in XML”. Currently two possible fields can be returned: ACQUIRER_RESPONSE_CODE and ACQUIRER_RESPONSE_TEXT, containing the original code and text from the acquirer's response to the authorization transaction.
ND003 - Secure Card Auto Registration
This field is returned when a secure card is created based on the card data passed in the request. This is only going to happen when the settings on Merchant Portfolio and Terminal align to allow the auto creation and storage of Secure Cards, and the request in place sends the details for a Secure Card (no TRACKDATA). If you are curious and want to know more about the settings, visit the | Important Integration Settings page.
ND004 - Error Handling
If there is an error processing the transaction, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
<?xml version="1.0" encoding="UTF-8"?> <OFFLINEPAYMENTRESPONSE> <UNIQUEREF>JJCVGCTOV3</UNIQUEREF> <RESPONSECODE>A</RESPONSECODE> <RESPONSETEXT>APPROVAL</RESPONSETEXT> <MASKEDCARDNUMBER>4111******111111</MASKEDCARDNUMBER> <APPROVALCODE>475318</APPROVALCODE> <DATETIME>2005-11-14T12:53:18</DATETIME> <CVVRESPONSE>M</CVVRESPONSE> <HASH>3a540c54da7a6697cc61d3111a7024b8b8ae9a3d862b859c41a252b188d5d73ecfebc429ca809f60130c5e37b47b0d4494ebfb5f34c244f78c62a7d7a5896dd2</HASH> </OFFLINEPAYMENTRESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Standard refunds can be performed on any authorized transactions in the system, either in the Open Batch or Closed Batch. By default you can refund any amount up to 100% of the original transaction value. If multiple partial refunds are performed then the sum total of them also cannot exceed 100%. This is to prevent fraud. This 100% value is configurable at a Terminal level. If you wish to alter this value, please contact support@integratedcommerce.io and include the reason(s) why you need it altered.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
UNIQUEREF | Y | The UNIQUEREF generated for the original payment response. In case the unique ref configuration is enabled, it's mandatory, otherwise, the system is going to accept the original ORDERID used for the pre-authorization. Either UNIQUEREF or ORDERID should be used, but never both. |
TERMINALID | Y | The merchant's terminal ID. |
AMOUNT | Y | The amount of the transaction. A 2 digit decimal or an integer value for JPY amounts. |
OPERATOR | Y | An identifier for who executed this transaction. |
REASON | Y | The reason for the refund. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
TERMINALID:UNIQUEREF:AMOUNT:DATETIME:SECRET
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
ND003 - Multi Language Support
If you want to provide the customer an email receipt in another language, you can use the Accept-Language parameter of the request to set language the customer should receive the receipt in. If the language provided is not supported, the Payment Gateway will use its default language (EN). Possible values are 'fr-FR' or even 'fr,en-US;q=0.9,en;q=0.8,ru;q=0.7,de;q=0.6,ru-RU;q=0.5,de-DE;q=0.4'.
<?xml version="1.0" encoding="UTF-8"?> <REFUND> <UNIQUEREF>Q8F40S2V</UNIQUEREF> <TERMINALID>6491002</TERMINALID> <AMOUNT>10.00</AMOUNT> <DATETIME>20-06-2006:12:28:02:171</DATETIME> <HASH>cfa094f53a508d2031c7895f9f766cbb</HASH> <OPERATOR>Test Operator</OPERATOR> <REASON>Faulty Goods</REASON> </REFUND>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
FIELD | DESCRIPTION |
---|---|
UNIQUEREF | Generated reference that should be stored for tracking this transaction. |
RESPONSECODE | A: (APPROVED/ AUTHORIZED/ ACCEPTED, respectively). E: (ACCEPTED for later processing, but result currently unknown - specifically for China Union Pay). D: (DECLINED). R: (REFERRED, also considered as PICKUP). C: (PICKUP, also known as Referral A or Referral B). For more details, visit at Transaction Responses. |
RESPONSETEXT | The text of the authorization. |
TERMINALID | The merchant's terminal ID. |
AMOUNT | The amount of the transaction. A 2 digit decimal or an integer value for JPY amounts. |
ADDITIONAL_FIELD | This field is used to send back data of interest of the merchant received by the gateway during the transaction. See ND003 - Additional Information on Response |
DATETIME | Response date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
TERMINALID:UNIQUEREF:AMOUNT:DATETIME:RESPONSECODE:RESPONSETEXT:SECRET
ND002 - Error Handling
If there is an error processing the transaction, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
ND003 - Additional Information on Response
This data is going to be sent back only when the Terminal executing the transaction is configured to do so. This configuration can be activated on the Terminal settings by enabling the “Integration” option “Enable original response in XML”. Currently two possible fields can be returned: ACQUIRER_RESPONSE_CODE and ACQUIRER_RESPONSE_TEXT, containing the original code and text from the acquirer's response to the authorization transaction.
<?xml version="1.0" encoding="UTF-8"?> <REFUNDRESPONSE> <UNIQUEREF>JJCVGCTOV3</UNIQUEREF> <RESPONSECODE>A</RESPONSECODE> <RESPONSETEXT>SUCCESS</RESPONSETEXT> <TERMINALID>6491002</TERMINALID> <AMOUNT>10.00</AMOUNT> <DATETIME>20-06-2006:12:28:03:875</DATETIME> <HASH>6a06aa6f14fe539f4dedd305465811ab</HASH> </REFUNDRESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Unreferenced refunds are refunds that do not require a payment transaction to be referenced. They are only available on certain accounts by request to support@integratedcommerce.io and must also be approved by your Acquiring (merchant) bank. As an Unreferenced Refund does not refer to a payment transaction, it's necessary to also provide the credit card to be used for the refund. In this case, there are two options: provide the card details (use the CARDDETAILS tag) or provide a valid Secure Card (token) (use the CARDREFERENCE tag).
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
ORDERID | Y | A unique identifier for the order created by the merchant. Maximum of 24 characters. |
CURRENCY | N | Currency of the transaction. A 3 character code following the ISO 4217 Currency Code. |
TERMINALID | Y | A TerminalID provided by the merchant service provider. NB - Please contact Worldnet to be issued with a test terminal ID. |
CARDREFERENCE | N | Secure Card reference generated and returned by the Payment Gateway when created. Either CARDREFERENCE or CARDETAILS should be used on request, never both. |
CARDDETAILS | N | Details of the card to which the refund is going to be done to. Take a look at ND003 - Card Details to see this tag's subelements. Either CARDREFERENCE or CARDETAILS should be used on request, never both. |
DECLINEDREFUNDUNIQUEREF | N | In the case where the merchant is performing an Unreferenced Refund and linking it to a Declined Online Refund.This tag must be included when the terminal uses UNIQUEREF. The card specified for this Unreferenced Refund must be different than that of the original Declined Refund. |
DECLINEDREFUNDORDERID | N | In the case where the merchant is performing an Unreferenced Refund and linking it to a Declined Online Refund. - This tag must be included when the terminal does NOT use UNIQUEREF. - If this tag is provided when a terminal specifically uses UNIQUEREF, an error will be returned. - The card specified for this Unreferenced Refund must be different than that of the original Declined Refund. |
AMOUNT | Y | The amount of the transaction. A 2 digit decimal or an Integer value for JPY amounts. |
AUTOREADY | N | Y or N. If this is set to Y, the Gateway will automatically set the transaction to READY in the batch. If set to N then the transaction will go to a PENDING status. If not present, the terminal default will be used. |
N | An email address to send a confirmation email to. Normally this is cardholder email address. | |
OPERATOR | Y | An identifier for who executed this transaction. |
DESCRIPTION | N | The description for the refund. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
When using a Secure Card (CARDREFERENCE) and a Single Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:ORDERID:AMOUNT:DATETIME:SECRET
When using a Secure Card (CARDREFERENCE) and a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:ORDERID:CURRENCY:AMOUNT:DATETIME:SECRET
When NOT using a Secure Card and using a Single Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:ORDERID:CARDTYPE:CARDNUMBER:CARDEXPIRY:CARDHOLDERNAME:AMOUNT:DATETIME:SECRET
When NOT using a Secure Card and using a Multi Currency Terminal, the string to generate the HASH field is going to formed using:
TERMINALID:ORDERID:CARDTYPE:CARDNUMBER:CARDEXPIRY:CARDHOLDERNAME:CURRENCY:AMOUNT:DATETIME:SECRET
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
ND003 - Card Details
The CARDDETAILS tag has nested elements to represent the card information, as it follows:
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
CARDNUMBER | N | Payment card number. |
CARDTYPE | Y | Card Type used for the transaction. For more details on this, visit Special Fields and Parameters - Card Types. |
CARDEXPIRY | N | Expiry date of the card. A 4 digit expiry field (MMYY). |
CARDHOLDERNAME | N | The name of the card holder. |
ND004 - Multi Language Support
If you want to provide the customer an email receipt in another language, you can use the Accept-Language parameter of the request to set language the customer should receive the receipt in. If the language provided is not supported, the Payment Gateway will use its default language (EN). Possible values are 'fr-FR' or even 'fr,en-US;q=0.9,en;q=0.8,ru;q=0.7,de;q=0.6,ru-RU;q=0.5,de-DE;q=0.4'.
<?xml version="1.0" encoding="UTF-8"?> <UNREFERENCEDREFUND> <ORDERID>115073134</ORDERID> <TERMINALID>6491002</TERMINALID> <CARDDETAILS> <CARDTYPE>VISA</CARDTYPE> <CARDNUMBER>4111111111111111</CARDNUMBER> <CARDEXPIRY>0807</CARDEXPIRY> <CARDHOLDERNAME>Joe Bloggs</CARDHOLDERNAME> </CARDDETAILS> <AMOUNT>10.00</AMOUNT> <EMAIL>cardholder_email@worldnettps.com</EMAIL> <DATETIME>20-06-2006:12:28:02:171</DATETIME> <HASH>cfa094f53a508d2031c7895f9f766cbb</HASH> <OPERATOR>Test Operator</OPERATOR> </UNREFERENCEDREFUND>
<?xml version="1.0" encoding="UTF-8"?> <UNREFERENCEDREFUND> <ORDERID>115073134</ORDERID> <TERMINALID>6491002</TERMINALID> <CARDREFERENCE>2967534771694736</CARDREFERENCE> <AMOUNT>10.00</AMOUNT> <EMAIL>cardholder_email@worldnettps.com</EMAIL> <DATETIME>20-06-2006:12:28:02:171</DATETIME> <HASH>cfa094f53a508d2031c7895f9f766cbb</HASH> <OPERATOR>Test Operator</OPERATOR> </UNREFERENCEDREFUND>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
FIELD | DESCRIPTION |
---|---|
UNIQUEREF | Generated reference that should be stored for tracking this transaction. |
RESPONSECODE | A: (APPROVED/ AUTHORIZED/ ACCEPTED, respectively). E: (ACCEPTED for later processing, but result currently unknown - specifically for China Union Pay). D: (DECLINED). R: (REFERRED, also considered as PICKUP). C: (PICKUP, also known as Referral A or Referral B). For more details, visit at Transaction Responses. |
RESPONSETEXT | The text of the authorization. |
PROCESSINGTERMINAL | If the transaction was performed on a “routing terminal” then this is populated with the processing terminal ID that the system selected to process the transaction. |
ADDITIONAL_FIELD | This field is used to send back data of interest of the merchant received by the gateway during the transaction. See ND003 - Additional Information on Response |
DATETIME | Response date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
TERMINALID+UNIQUEREF+AMOUNT+DATETIME+RESPONSECODE+RESPONSETEXT+secret
ND002 - Error Handling
If there is an error processing the transaction, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
ND003 - Additional Information on Response
This data is going to be sent back only when the Terminal executing the transaction is configured to do so. This configuration can be activated on the Terminal settings by enabling the “Integration” option “Enable original response in XML”. Currently two possible fields can be returned: ACQUIRER_RESPONSE_CODE and ACQUIRER_RESPONSE_TEXT, containing the original code and text from the acquirer's response to the authorization transaction.
<?xml version="1.0" encoding="UTF-8"?> <UNREFERENCEDREFUNDRESPONSE> <RESPONSECODE>A</RESPONSECODE> <RESPONSETEXT>SUCCESS</RESPONSETEXT> <UNIQUEREF>G53D0M1S4</UNIQUEREF> <TERMINALID>6491002</TERMINALID> <AMOUNT>10.00</AMOUNT> <DATETIME>20-06-2006:12:28:03:875</DATETIME> <HASH>6a06aa6f14fe539f4dedd305465811ab</HASH> </UNREFERENCEDREFUNDRESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Direct XML transactions (Payment, Pre-Auth and Pre-Auth Completion) can be DCC (Dynamic Currency Conversion) enabled. This is useful when card and terminal currencies are different. Our Payment Gateway supports Currency Conversion Rate requests. Broweser-based software applications can request the Conversion Rate for the card then the cardholder has to decide if he/she would like to use the eDCC service after which the appropriate request to the Gateway will be sent. All eDCC enabled XML transaction requests should include the additional FOREIGNCURRENCYINFORMATION tag with all required nested tags.
DCC transactions are allowed for the eDCC-enabled terminals only. DCC support for the terminal can be enabled or disabled by our support team only, and it's not available on multi-currency Terminals.
This feature allows you to obtain eDCC exchange rates for specific terminals, depending on the Terminal's settings.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
TERMINALID | Y | The merchant's terminal ID. NB - Please contact us to be issued with a test terminal ID. |
CARDBIN | Y | BIN. The first 6 digits from the Card Number. |
BASEAMOUNT | N | Transaction amount in the base currency. If sent the Gateway will return the correctly formatted and calculated FOREIGNAMOUNT. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
TERMINALID:CARDBIN:DATETIME:SECRET
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
<?xml version="1.0" encoding="UTF-8"?> <GETCARDCURRENCYRATE> <TERMINALID>1001</TERMINALID> <CARDBIN>411111</CARDBIN> <DATETIME>27-06-2007:16:50:02:123</DATETIME> <HASH>15f6c0f0b51faff9cbb77220ab8ddfce</HASH> </GETCARDCURRENCYRATE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
FIELD | DESCRIPTION |
---|---|
TERMINALCURRENCY | Terminal's currency code. ISO 4217 Currency Code. |
CARDCURRENCY | Card's currency code. ISO 4217 Currency Code. |
CONVERSIONRATE | Conversion rate. See note 2 below. |
EXCHANGERATESOURCENAME | Source of rates. Display on decision page. |
MARGINPERCENTAGE | Margin percentage applied. |
COMMISSIONPERCENTAGE | Commission percentage applied. |
FOREIGNAMOUNT | Converted amount. |
DATETIME | Response date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
TERMINALCURRENCY:CARDCURRENCY:CONVERSIONRATE[1]:DATETIME:SECRET
ND002 - Error Handling
If there is an error processing the transaction, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
ND003 - Response Codes - Errors
Error Code | Description |
---|---|
101 | Terminal not found. |
102 | BIN not found. |
103 | Currencies are not the same. |
104 | eDCC is not allowed for the terminal. |
105 | Invalid card currency/Unknown currency. |
106 | Conversion rate not found. |
107 | Invalid Request format. |
108 | Invalid hash in the request. |
109 | Other error. |
110 | Internal error. |
111 | Unsupported card currency. |
<?xml version="1.0" encoding="UTF-8"?> <CARDCURRENCYRATERESPONSE> <TERMINALCURRENCY>EUR</TERMINALCURRENCY> <CARDCURRENCY>GBP</CARDCURRENCY> <CONVERSIONRATE>0.667157</CONVERSIONRATE> <EXCHANGERATESOURCENAME>Imaginary Bank</EXCHANGERATESOURCENAME> <MARGINPERCENTAGE>1.50</MARGINPERCENTAGE> <COMMISSIONPERCENTAGE>1.00</COMMISSIONPERCENTAGE> <FOREIGNAMOUNT>15.98</FOREIGNAMOUNT> <DATETIME>27-06-2007:16:50:02:999</DATETIME> <HASH>a12a10322f5af4a8a419f7dc1c6dd39f</HASH> </CARDCURRENCYRATERESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Some Acquiring Banks support Multi Currency Processing (MCP). They allow Merchants processing transactions in one of a number of pre-defined currencies for a Terminal. This option allows Merchants to retrieve rates daily when using MCP Terminals, making possible to verify the accurate pricing of the currencies they desire to process transactions on.
This option is only available for TSYS Saratoga terminals, but if you have any questions, we will inform you if your Terminal ID supports multi-currency. Contact our support team if you have any questions relating to multi-currency terminals.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
TERMINALID | Y | The merchant's terminal ID. NB - Please contact us to be issued with a test terminal ID. |
FXCURRENCY | Y | Configured currency (at terminal level) to which you desire to know the current conversion rate. |
BASEAMOUNT | N | Transaction amount in the base currency of your terminal (not related to the FXCURRENCY). If sent, the Gateway will return the correctly formatted and calculated FOREIGNAMOUNT, and only for informational purpose, the terminal base currency. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following format:
TERMINALID:FXCURRENCY:DATETIME:SECRET
<?xml version="1.0" encoding="UTF-8"?> <GETFXCURRENCYRATE> <TERMINALID>6491002</TERMINALID> <FXCURRENCY>EUR</FXCURRENCY> <BASEAMOUNT>12</BASEAMOUNT> <DATETIME>12-01-2018:11:47:04:656</DATETIME> <HASH>f7690c9ceaab0708415d370c8e28998cd29634985ef0cb036f969186a2c97a7934b8277c7153277180acfb61e78c1f37d70bf53d066362d9ebed8d1fca584575</HASH> </GETFXCURRENCYRATE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
The response body fields will be:
FIELD | DESCRIPTION |
---|---|
TERMINALCURRENCY | Base currency for the terminal. |
FXCURRENCY | Currency used to recover the conversion rate in relation to the terminal base currency. |
CONVERSIONRATE | Recovered relation between the (Response) Terminal Currency and the (Requested) Conversion currency. |
FOREIGNAMOUNT | Multiplication of the (Requested) Base Amount and the (Response) Conversion Rate recovered. |
DATETIME | Response date and time for the response. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following format:
TERMINALCURRENCY:FXCURRENCY:CONVERSIONRATE:DATETIME:SECRET
ND002 - Converting the Base Amount and Retrieving the
If the BASEAMOUNT is not provided on request, the FOREIGNAMOUNT is not generated, but the CONVERTIONRATE and the TERMINALCURRENCY are.
<?xml version="1.0" encoding="UTF-8"?> <FXCURRENCYRATERESPONSE> <TERMINALCURRENCY>USD</TERMINALCURRENCY> <FXCURRENCY>EUR</FXCURRENCY> <CONVERSIONRATE>0.889639</CONVERSIONRATE> <FOREIGNAMOUNT>10.68</FOREIGNAMOUNT> <DATETIME>20-09-2018:07:23:56:416</DATETIME> <HASH>ec14da3eddccf97279a32a3e90bff487facaa19c22fc88c6ebd48a2c1cd29473c3c05044732784c295fd8ae49db8f2281bf8d16accbdab880ae94b2232fa259e</HASH> </FXCURRENCYRATERESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Allows you to add enhanced data (Level II or Level III) to transactions already processed, before they are settled.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
ORDERID | Y | |
UNIQUEREF | Y | The UNIQUEREF generated for the original payment response. |
OPERATOR | Y | An identifier for who executed this transaction. |
LEVEL_2_DATA | N | Component of the request that can be added in case the Level II Data feature is in use for the Terminal processing the Payment. See ND003 - Level 2 Data Validation. |
LEVEL_3_DATA | N | Component of the request that can be added in case the Level III Data feature is in use for the Terminal processing the Payment. See ND004 - Level 3 Data Validation. |
ENHANCED_DATA_TEMPLATE | N | Enhanced Data template name to be used when creating the transaction. It fills up any not provided transaction's enhanced data field. Note that if you use a template, but send the data during the request, the gateway is just going to use the template to fill the gaps of whatever you didn't send in your original request. Also, if you send at least one item in LEVEL_3_DATA component, no item from template is going to be applied. This field should only be used if you desire to use one of your Enhanced Data Templates (see Merchant Enhanced Data Templates for more details). This field is only available for terminals with Enhanced Data (Level II and Level III) feature enabled. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Special Fields and Parameters section. For this specific feature, you should use the following formats:
TERMINALID:UNIQUEREF:OPERATOR:CUSTOMERREF:TAXAMOUNT:FULLNAME:ADDRESS1:ADDRESS2:CITY:REGION:POSTCODE:COUNTRY:TOTALDISCOUNTAMOUNT:TOTALFREIGHTAMOUNT:TOTALDUTYAMOUNT:COMMODITYCODE[1]:PRODUCTCODE[1]:DESCRIPTION[1]:QUANTITY[1]:UNITOFMEASURE[1]:UNITPRICE[1]:DISCOUNTRATE[1]:TAXRATE[1]:ENHANCEDDATATEMPLATE:DATETIME:SECRET
[1] For each LINEITEM added, it's necessary to add all of its details, then add the details of the next item until the last one.
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
ND003 - Level 2 Data Validation
This field is associated with the Enhanced Data (Level II and Level III) feature, and to be used it is necessary to have the “Allow Enhanced Data (Level II and Level III)” enabled with the “Transaction Data Level” option set as “Level II" on the Processing Terminal. Contact our Support Team to configure this option.
To provide a transaction with LEVEL II, your request needs to add the LEVEL_2_DATA component and its fields as described below.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
CUSTOMER_REF_NUMBER | N | Text type with max length of 48 characters. This number is defined by the cardmember. It is entered by the merchant at the point of sale. |
TAX_AMOUNT | N | Integer type, with max length of 13 numbers. A value of zero is required in order to indicate tax exempt transactions. |
SHIPPING_ADDRESS | N | A subcomponent with all the data related to the shipping address of a purchase. |
FULL_NAME | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. |
ADDRESS1 | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. |
ADDRESS2 | N | Subfield of SHIPPING_ADDRESS. Value is text type, with max length of 50 characters. Always optional regardless compulsory setting. |
CITY | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 128 characters. |
REGION | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 128 characters. |
POSTCODE | N | Subfield of SHIPPING_ADDRESS. Value is text type, between 1 and 50 characters. |
COUNTRY | N | Subfield of SHIPPING_ADDRESS. Value is text type, with 2 characters. ISO ALPHA-2 COuntry Code. |
ND004 - Level 3 Data Validation
This field is associated with the Enhanced Data (Level II and Level III) feautre, and to be used it is necessary to have the “Allow Enhanced Data (Level II and Level III)” enabled with the “Transaction Data Level” option set as “Level III" on the Processing Terminal. Contact our Support Team to configure this option.
To provide a transaction with LEVEL III, your request needs to add the LEVEL_2_DATA (descriped before) and the LEVEL_3_DATA components and their fields. The LEVEL_3_DATA component fields are described below.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
SUMMARY | N | Subcomponent of Level 3. Aggregates the sum of different values within the transaction. |
TOTAL_DISCOUNT_AMOUNT | N | Subfield of SUMMARY. Represents the total value assigned as discount to the sale. That considers the resulting sum from all items' discount rates (unit price x quantity x discount rate) and any other additional discount applied after that. Decimal value, allowing max of 13 digits with min value of 0. |
TOTAL_FREIGHT_AMOUNT | N | Subfield of SUMMARY. Represents the freight amount applied to the sale. Decimal value, allowing max of 13 digits with min value of 0. |
TOTAL_DUTY_AMOUNT | N | Subfield of SUMMARY. Represents the duty amount applied to the sale. Decimal value, allowing max of 13 digits with min value of 0. |
LINE_ITEMS | N | Subcomponent of Level 3. List of all items in which the sale is broken down. |
LINE_ITEM | N | Subfield of LINE_ITEMS. Holds all the details of a sale's item. You can add as much as necessary to express the breakdown of your sale. |
COMMODITY_CODE | N | Subfield of LINE_ITEM. Item's commodity code, defined for trade tariff. Widely used by corporate purchasing organizations to segment and manage their total spend across diverse product lines. Defined at government or commercial agreements leve. Consult your Acquirer for more details. |
PRODUCT_CODE | N | |
DESCRIPTION | N | Subfield of LINE_ITEM. This merchant's description of the product. |
QUANTITY | N | Subfield of LINE_ITEM. Quantity of the specific item for the sale. |
UNIT_OF_MEASURE | N | Subfield of LINE_ITEM. Measure unit used for this specific item to sell it in parts, units or sets. |
UNIT_PRICE | N | Subfield of LINE_ITEM. Unit price applied for that specific type of item and measure unit, within the sale. |
DISCOUNT RATE | N | Subfield of LINE_ITEM. A % of discount applied to the item total (quantity x unit price) before taxes. |
TAX_RATE | N | Subfield of LINE_ITEM. A % of tax applied to the item total (quantity x unit price) after discounts. |
TOTAL_AMOUNT | N | Subfield of LINE_ITEM. Final item value based on total (quantity x unit price) after discount and tax applied. |
Information box
DON'T FORGET
If you are using LEVEL_3_DATA component, also add to your request the LEVEL_2_DATA 2 component to attempt a full qualification for enhanced data.
<?xml version="1.0" encoding="UTF-8"?> <UPDATE_TRANSACTION_ENHANCED_DATA> <TERMINALID>6491002</TERMINALID> <UNIQUEREF>DSF96457</UNIQUEREF> <OPERATOR>John Smith</OPERATOR> <LEVEL_2_DATA> <CUSTOMER_REF_NUMBER>SDGK-JSAAS-0235.00002314</CUSTOMER_REF_NUMBER> <TAX_AMOUNT>151.27</TAX_AMOUNT> <SHIPPING_ADDRESS> <FULL_NAME>JOHN SMITH AND ASSOCIATES</FULL_NAME> <ADDRESS1>Unit 001, Street X</ADDRESS1> <ADDRESS2>Block "A", Neighborhood "A"</ADDRESS2> <CITY>City "Y"</CITY> <REGION>Region 1</REGION> <POSTCODE>A00B0001</POSTCODE> <COUNTRY>Country "Z"</COUNTRY> </SHIPPING_ADDRESS> </LEVEL_2_DATA> <LEVEL_3_DATA> <SUMMARY> <TOTAL_DISCOUNT_AMOUNT>61.30</TOTAL_DISCOUNT_AMOUNT> <TOTAL_FREIGHT_AMOUNT>3.50</TOTAL_FREIGHT_AMOUNT> <TOTAL_DUTY_AMOUNT>11.50</TOTAL_DUTY_AMOUNT> </SUMMARY> <LINE_ITEMS> <!-- As many as necessary --> <LINE_ITEM> <COMMODITY_CODE>PDX001</COMMODITY_CODE> <PRODUCT_CODE>DSV1303.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>10</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <UNIT_PRICE>105.50</UNIT_PRICE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>12.50</TAX_RATE> <TOTAL_AMOUNT>1127.53</TOTAL_AMOUNT> </LINE_ITEM> <LINE_ITEM> <COMMODITY_CODE>PDX002</COMMODITY_CODE> <PRODUCT_CODE>DSV1302.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>2</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <UNIT_PRICE>85.50</UNIT_PRICE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>16.00</TAX_RATE> <TOTAL_AMOUNT>188.44</TOTAL_AMOUNT> </LINE_ITEM> </LINE_ITEMS> </LEVEL_3_DATA> <DATETIME>12-06-2006:11:47:04:656</DATETIME> <HASH>3a540c54da7a6697cc61d3111a7024b8b8ae9a3d862b859c41a252b188d5d73ecfebc429ca809f60130c5e37b47b0d4494ebfb5f34c244f78c62a7d7a5896dd2</HASH> </UPDATE_TRANSACTION_ENHANCED_DATA>
FIELD | DESCRIPTION |
---|---|
ORDERID | Same as sent on request. |
UNIQUEREF | Same as sent on request. |
LEVEL_2_DATA | Same fields as request - returns what is currently saved on transaction. |
LEVEL_3_DATA | Same fields as request - returns what is currently saved on transaction. |
DATETIME | Response date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001-Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Special Fields and Parameters section. For this specific feature, you should use the following formats:
TERMINALID:UNIQUEREF:CUSTOMERREF:TAXAMOUNT:FULLNAME:ADDRESS1:ADDRESS2:CITY:REGION:POSTCODE:COUNTRY:TOTALDISCOUNTAMOUNT:TOTALFREIGHTAMOUNT:TOTALDUTYAMOUNT:COMMODITYCODE[1]:PRODUCTCODE[1]:DESCRIPTION[1]:QUANTITY[1]:UNITOFMEASURE[1]:UNITPRICE[1]:DISCOUNTRATE[1]:TAXRATE[1]:TOTALAMOUNT[1]:DATETIME:SECRET
[1] For each LINEITEM added, it's necessary to add all of its details, then add the details of the next item until the last
one.
ND002 - Error Handling
If there is an error processing the transaction, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
<?xml version="1.0" encoding="UTF-8"?> <TRANSACTIONUPDATERESPONSE> <TERMINALID>6491002</TERMINALID> <UNIQUEREF>DSF96457</UNIQUEREF> <LEVEL_2_DATA> <CUSTOMER_REF_NUMBER>SDGK-JSAAS-0235.00002314</CUSTOMER_REF_NUMBER> <TAX_AMOUNT>151.27</TAX_AMOUNT> <SHIPPING_ADDRESS> <FULL_NAME>JOHN SMITH AND ASSOCIATES</FULL_NAME> <ADDRESS1>Unit 001, Street X</ADDRESS1> <ADDRESS2>Block "A", Neighborhood "A"</ADDRESS2> <CITY>City "Y"</CITY> <REGION>Region 1</REGION> <POSTCODE>A00B0001</POSTCODE> <COUNTRY>Country "Z"</COUNTRY> </SHIPPING_ADDRESS> </LEVEL_2_DATA> <LEVEL_3_DATA> <SUMMARY> <TOTAL_DISCOUNT_AMOUNT>61.30</TOTAL_DISCOUNT_AMOUNT> <TOTAL_FREIGHT_AMOUNT>3.50</TOTAL_FREIGHT_AMOUNT> <TOTAL_DUTY_AMOUNT>11.50</TOTAL_DUTY_AMOUNT> </SUMMARY> <LINE_ITEMS> <!-- As many as necessary --> <LINE_ITEM> <COMMODITY_CODE>PDX001</COMMODITY_CODE> <PRODUCT_CODE>DSV1303.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>10</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <UNIT_PRICE>105.50</UNIT_PRICE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>12.50</TAX_RATE> <TOTAL_AMOUNT>1127.53</TOTAL_AMOUNT> </LINE_ITEM> <LINE_ITEM> <COMMODITY_CODE>PDX002</COMMODITY_CODE> <PRODUCT_CODE>DSV1302.090.00001</PRODUCT_CODE> <DESCRIPTION>General services</DESCRIPTION> <QUANTITY>2</QUANTITY> <UNIT_OF_MEASURE>Hour</UNIT_OF_MEASURE> <UNIT_PRICE>85.50</UNIT_PRICE> <DISCOUNT_RATE>5.00</DISCOUNT_RATE> <TAX_RATE>16.00</TAX_RATE> <TOTAL_AMOUNT>188.44</TOTAL_AMOUNT> </LINE_ITEM> </LINE_ITEMS> </LEVEL_3_DATA> <DATETIME>12-06-2006:11:47:04:656</DATETIME> <HASH>3a540c54da7a6697cc61d3111a7024b8b8ae9a3d862b859c41a252b188d5d73ecfebc429ca809f60130c5e37b47b0d4494ebfb5f34c244f78c62a7d7a5896dd2</HASH> </TRANSACTIONUPDATERESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
This functionality allows the retrieval of a previously processed transaction. Transaction identification information must be stored beforehand in order to subsequently use it for retrieval.
FIELD | REQUIRED | DESCRIPTION |
---|---|---|
TERMINALID | Y | A Terminal ID provided by the merchant service provider. NB - Please contact our Support Team to be issued with a test terminal ID. |
UNIQUEREF | Y/N | Required if ORDERID is not populated. Refers the UNIQUEREF generated for the original transaction response. |
ORDERID | Y/N | Required if UNIQUEREF is not populated. A search can be made using the ORDERID of the transaction. This requires the target terminal to have the setting 'Force Unique Order ID' enabled. |
DATETIME | Y | Request date and time. Format: DD-MM-YYYY:HH:MM:SS:SSS. |
HASH | Y | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
TERMINALID:UNIQUEREF:DATETIME:SECRET
ND002 - Data Encoding for Requests
All data sent to us should be correctly encoded using UTF-8 as the character encoding.
<?xml version="1.0" encoding="UTF-8"?> <GET_TRANSACTION_DETAILS> <TERMINALID>6491002</TERMINALID> <UNIQUEREF>GCNQAWUUVZ</UNIQUEREF> <DATETIME>06-03-2018:17:41:08:273</DATETIME> <HASH>73e340cfb2b7424252d1ced917e4f74704aaa66a9600039f4800434cefe87d721c342d2b915c6e2aeea88b34e749ba97665f7d9e50b1144ca0f0745361fc4896</HASH> </GET_TRANSACTION_DETAILS>
FIELD | DESCRIPTION |
---|---|
TERMINALID | Terminal to which the transaction was submitted. |
UNIQUEREF | Transaction's unique referenced. Same as provided at the request. |
TRANSACTION_STATUS | Current status of the transaction. |
TRANSACTION_DATE | Date time of the transaction's processing. |
OPERATOR | An identifier for who executed this transaction. |
TRANSACTION_TYPE | Indicates if the transaction is a SALE, a REFUND, a PREAUTH or a pre-auth COMPLETION. |
CURRENCY | Transaction's currency. |
AUTHORIZEDAMOUNT | Amount authorized for the transaction. |
ADDITIONAL_DETAILS | Additional details on the transaction, like the result information, custom fields, batch, among other. |
BATCH_NUMBER | Subfield of ADDITIONAL_DETAILS. Indicates the batch number of the transaction, if not in open batch anymore. |
BULK_NUMBER | Subfield of ADDITIONAL_DETAILS. Indicates the number of the bulk in which the transaction was send (only if the transaction was part of a bulk). |
PROCESSINGTERMINAL | Subfield of ADDITIONAL_DETAILS. Indicates the number of the processing terminal of this transaction. Might differ from the TERMINALID if the transaction was submitted to a routing terminal (once the transaction is routed, it goes to a processing terminal). |
RESPONSECODE | Subfield of ADDITIONAL_DETAILS. A: (APPROVED/ AUTHORIZED/ ACCEPTED, respectively). E: (ACCEPTED for later processing, but result currently unknown - specifically for China Union Pay). D: (DECLINED). R: (REFERRED, also considered as PICKUP). C: (PICKUP, also known as Referral A or Referral B). For more details, visit at Transaction Responses. |
RESPONSETEXT | Subfield of ADDITIONAL_DETAILS. The text of the authorization. |
APPROVALCODE | Subfield of ADDITIONAL_DETAILS. A six digit AuthCode. |
FOREIGNCURRENCYINFORMATION | Subfield of ADDITIONAL_DETAILS. Tag contains Dynamic Currency Conversion information. It has to be present in the eDCC enabled transactions. |
CARDCURRENCY | Subfield of FOREIGNCURRENCYINFORMATION. Cardholder card's currency code. |
CARDAMOUNT | Subfield of FOREIGNCURRENCYINFORMATION. Amount which is supposed to be charged in the home currency. |
CONVERSIONRATE | Subfield of FOREIGNCURRENCYINFORMATION. Value of the Conversion Rate on original request. |
DESCRIPTION | Subfield of ADDITIONAL_DETAILS. |
TRANSACTION_CUSTOM_FIELDS | Subfield of ADDITIONAL_DETAILS. List of TRANSACTION_CUSTOM_FIELD used with the transaction. |
NAME | Subfield of each TRANSACTION_CUSTOM_FIELD. Name of the custom field used. |
VALUE | Subfield of each TRANSACTION_CUSTOM_FIELD. Value provided for the custom field used. |
DATETIME | Response date and time for the transaction, created by the bank. Format: YYYY-MM-DDTHH:MM:SS. Note that this is intentionally in a different format to the request timestamp to highlight the fact that it is a different time. |
HASH | A HASH code formed by part of the request fields. The formation rule is given at the ND001 - Hash Formation, in the next section. |
ND001 - Hash Formation
The general rule to build the HASH field is given on the Special Fields and Parameters page, under the Hash Parameter section. For this specific feature, you should use the following formats:
TERMINALID:UNIQUEREF:ORDERID:TRANSACTION_STATUS:TRANSACTION_DATE:OPERATOR:TRANSACTION_TYPE:CURRENCY:AUTHORIZEDAMOUNT:BATCH_NUMBER:BULK_NUMBER:PROCESSINGTERMINAL:RESPONSECODE:RESPONSETEXT:APPROVALCODE:CARDCURRENCY:CARDAMOUNT:CONVERSIONRATE:DESCRIPTION:DATETIME:SECRET
ND002 - Error Handling
If there is an error processing the request, the error string is returned in an XML message with the simple tags:
<ERROR> <ERRORSTRING>This is the error generated!</ERRORSTRING> </ERROR>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <GET_TRANSACTION_DETAILS_RESPONSE> <TERMINALID>3614008</TERMINALID> <UNIQUEREF>E4RGZYVCME</UNIQUEREF> <TRANSACTION_STATUS>REVIEW</TRANSACTION_STATUS> <TRANSACTION_DATE>26-04-2019:17:19:18:000</TRANSACTION_DATE> <OPERATOR>CardHolder Payment</OPERATOR> <TRANSACTION_TYPE>SALE</TRANSACTION_TYPE> <CURRENCY>USD</CURRENCY> <AUTHORIZEDAMOUNT>52.03</AUTHORIZEDAMOUNT> <ADDITIONAL_DETAILS> <RESPONSECODE>A</RESPONSECODE> <RESPONSETEXT>APPROVAL</RESPONSETEXT> <APPROVALCODE>VVVVWM</APPROVALCODE> <TRANSACTION_CUSTOM_FIELDS> <TRANSACTION_CUSTOM_FIELD> <NAME>Promocode</NAME> <VALUE>sevr9w409vw4v59w45v</VALUE> </TRANSACTION_CUSTOM_FIELD> </TRANSACTION_CUSTOM_FIELDS> </ADDITIONAL_DETAILS> <DATETIME>30-04-2019:14:34:47:707</DATETIME> <HASH>61a587361fa4631a72af9d47395ad0ab81cb6b5928ed8b41ab0860e7cd52c4bc55361f3d3c0b8cf52add999c0c5c07acd6f8f26c0b045d33c0d97489b3f6be9a</HASH> </GET_TRANSACTION_DETAILS_RESPONSE>
REMEMBER to replace the TERMINALID and Terminal Secret with valid values.
Not all of the transactions will return the same fields. Most are similar, but some may have less data than what is described by the response field table.