...
Field Name | Value Example | Description |
---|---|---|
MID | 000000001754852 | |
AID | A0000000031010 | |
TXN_TYPE | SALE | |
TXN_TYPE_LABEL | VENTA (spanish) | i18n version of TXN_TYPE |
TVR | 0000000000 | |
CURRENCY_WITH_AMOUNT | USD 55.00 | |
ARC | 0000 | |
TIME | 16:25 | |
DATE | 22.11.2019 | |
TSI | 0000 | |
ENTRY | Contactless | |
ERROR_MESSAGE | Successful | |
MERCHANT_LOCATION | Ármúli 30 108 reykjavik | |
APP_LABEL | VISA CREDIT | |
TID | 01754852 | |
CARD_NUMBER |
| |
pin_entered | 0 | |
SUCCESS_RESPONSE | 1 | |
IAD | 06010A03A00000 | |
RECEIPT_TYPE_DESCRIPTION |
| |
CVM | VERIFICATION NOT REQUIRED | |
PIN_VERIFIED_DESCRIPTION | PIN VERIFIED | |
APP_EXP_DATE | 1222 | |
RECEIPT_COPY |
| |
REFERENCE | 5a5ffb60-0d3c-11ea-9248-8bf5d5600868 | |
ORIGINAL_REFERENCE | 5a5ffb60-0d3c-11ea-9248-8bf5d5600868 | This field only appears in the case of a reversal. It represents the GUID of the transaction being reversed. |
SIGNATURE_REQUIRED | 0 | |
MERCHANT_NAME | Borgun Test Merchant | |
AUTH_CODE | 123456 | |
RECEIPT_TYPE | MERCHANT_COPY | |
RESPONSE | Successful | |
RESPONSE_LABEL | Autorizada (spanish) | i18n version of RESPONSE |
AMOUNT_LABEL | Amount | |
TIP_AMOUNT_LABEL | Tip | Taken from the header field in TipConfiguration Object |
TOTAL_AMOUNT_LABEL | Total Amount | |
TENDER_TYPE_I18N | Tipo de Pago (Spanish) | Translated value of “Tender Type“ |
TENDER_TYPE | Credit |
Template Example
Code Block | ||
---|---|---|
| ||
<html> <head></head> <body> <header> <img class="center" src="https://hndpt.co/34r676D" /> {% if ($MERCHANT_NAME) %} <div id="merchant_name"> <p class="large bold center">{$MERCHANT_NAME}</p> </div> {% endif %} {% if ($MERCHANT_LOCATION) %} <div id="merchant_location"> <p class="center">{$MERCHANT_LOCATION}</p> </div> {% endif %} <div id="datetime" class="separator solid" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div> {% if ($DATETIME) %} <div> <label class="left">{$DATETIME|date}</label> <span class="right">{$DATETIME|time}</span> </div> {% endif %} </header> <main> {% if ($RESPONSE_I18N) %} <div id="response"> <p class="large bold center">{$RESPONSE_I18N|trim}{% if ($PRINT_ERROR_MESSAGE_I18N) %}:{% endif %}</p> </div> {$RESPONSE_I18N} {% if ($ERROR$PRINT_ERROR_MESSAGE_I18N) !=%} null && ($ERROR_MESSAGE_I18N|trim != $RESPONSE_I18N|trim)) %}: <div id="error_response_message"> {% endif %<p class="large bold center">{$ERROR_MESSAGE_I18N}</p> </div> {% if ($ERROR_MESSAGE_I18N != null && ($ERROR_MESSAGE_I18N|trim != $RESPONSE_I18N|trim)endif %} {% elseIf ($RESPONSE) %} <div id="error_response_message"> <p class="large bold center">{$ERROR_MESSAGE_I18N{$RESPONSE|trim}{% if ($PRINT_ERROR_MESSAGE) %}:{% endif %}</p> </div> {% endif %} {% elseIf ($RESPONSEif ($PRINT_ERROR_MESSAGE) %} <div id=""error_response_message"> <p class="large bold center">{$ERROR_MESSAGE}</p> </div> {$RESPONSE}{% endif if ($ERROR_MESSAGE != null && ($ERROR_MESSAGE|trim != $RESPONSE|trim)) %}:%} {% endif %}</p> </div> {% if ($ERROR_MESSAGE != null && ($ERROR_MESSAGE|trim != $RESPONSE|trim)) {% if ($TXN_TYPE) %} <div id="errortxn_response_messagetype"> <p class="large bold center">{$ERROR$TXN_TYPE_MESSAGEI18N}</p> </div> {% endif %} {% endifif ($TOTAL_AMOUNT) %} {% if ($TXN_TYPE$AMOUNT) %} <div id="txn_type">amount"> <label class="left">{$AMOUNT_LABEL}: </label> <p<span class="large bold centerright">{$TXN_TYPE_I18N$AMOUNT|currency($CURRENCY)}</p>span> </div> {% endif %} {% if ($TOTAL$TIP_AMOUNT) %} {% if ($AMOUNT) %} <div id="tip_amount"> <label class="left">{$AMOUNT$TIP_AMOUNT_LABEL}: </label> <span class="large right">{$AMOUNT$TIP_AMOUNT|currency($CURRENCY)}</span> </div> {% endif %}</div> {% if ($TIP_AMOUNT) endif %} <div id="tiptotal_amount"> <label class="xlarge left bold">{$TIP$TOTAL_AMOUNT_LABEL}: </label> <span class="largexlarge bold right">{$TIP$TOTAL_AMOUNT|currency($CURRENCY)}</span> </div> {% endifelseIf ($AMOUNT) %} <div id="total_amount"> <label class="xlarge left bold">{$TOTAL_AMOUNT$AMOUNT_LABEL}: </label> <span class="xlargelarge bold right">{$TOTAL_AMOUNT$AMOUNT|currency($CURRENCY)}</span> </div> {% elseIf ($AMOUNTendif %} {% if ($ACCOUNT_TYPE) %} <div id="amountaccount_type"> <label class="left bold">{$AMOUNT$ACCOUNT_TYPE_LABELI18N}: </label> <span class="large right">{$AMOUNT|currency($CURRENCY)$ACCOUNT_TYPE}</span> </div> {% endif %} {% if ($ACCOUNT$DUE_TYPEAMOUNT) %} <div id="accountdue_typeamount"> <label class="left bold">{$ACCOUNT$DUE_TYPEAMOUNT_I18N}</label> <span class="right">{$ACCOUNT_TYPE$DUE_AMOUNT|currency($CURRENCY)}</span> </div> {% endif %} <div class="separator dotted" style="margin-top: 10px; height: 2px; {% endif %}margin-bottom: 10px;"></div> {% if ($DUE_AMOUNT$MID) %} <div id="due_amountmid"> <label class="left bold">{$DUE_AMOUNT$MID_I18N}</label> <span class="right">{$DUE_AMOUNT|currency($CURRENCY)$MID}</span> </div> {% endif %} <div class="separator dotted" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div>{% endif %} {% if ($MID$TID) %} <div id="midtid"> <label class="left bold">{$MID$TID_I18N}</label> <span class="right">{$MID$TID}</span> </div> {% endif %} {% if ($TID$CARD_NUMBER) %} <div id="tidcard_number"> <label class="left bold">{$TID$APP_I18NLABEL}</label> <span class="right">{$TID$CARD_NUMBER}</span> </div> {% endif %} {% if ($CARD_NUMBER$ENTRY) %} <div id="card_numberentry"> <label class="left bold">{$APP$ENTRY_LABELI18N}</label> <span class="right">{$CARD_NUMBER$ENTRY}</span> </div> {% endif %} {% if ($CVM != null) && ($TXN_TYPE != "SALE VOID") ($ENTRY&& ($TXN_TYPE != "REFUND VOID") %} <div id="entrycvm"> <label class="left bold">{$ENTRY$CVM_I18N}</label> <span class="right">{$ENTRY$CVM}</span> </div> {% endif %} {% if ($CVM != null) && ($TXN_TYPE != "SALE VOID") && ($TXN_TYPE != "REFUND VOID" {% if ($AUTH_CODE) %} <div id="cvmauth_code"> <label class="left bold">{$CVM$AUTH_CODE_I18N}</label> <span class="right">{$CVM$AUTH_CODE}</span> </div> {% endif %} {% if ($AUTH$TENDER_TYPE_CODEI18N) %} <div id="authtender_codetype"> <label class="left bold">{$AUTH$TENDER_CODETYPE_I18N}</label> <span class="right">{$AUTH$TENDER_CODETYPE}</span> </div> {% endif %} <div class="separator dotted" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div> {% if ($ORIGINAL_REFERENCE) %} <div> <p class="left bold">GUID</p> </div> <div id="guid"> <p class="small left">{$ORIGINAL_REFERENCE}</p> </div> <div> <p class="left bold">{$TXN_TYPE_I18N} GUID</p> </div> <div id="guid"> <p class="small left">{$REFERENCE}</p> </div> {% endif %} {% elseIf ($REFERENCE) %} <div> <p class="left bold">GUID</p> </div> <div id="guid"> <p class="small left">{$REFERENCE}</p> </div> {% endif %} {% if ($RRN) %} <div> <p class="left bold">{$RRN_I18N}</p> </div> <div id="rrn"> <p class="small left">{$RRN}</p> </div> {% endif %} <div class="separator dotted" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div> {% if ($RECEIPT_TYPE_DESCRIPTION) %} <div id="receipt_type_description"> <p class="center">{$RECEIPT_TYPE_DESCRIPTION}</p> </div> {% endif %} <div class="separator solid" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div> {% if ($SWIPE != 1) %} {% if ($TVR != null || $AID != null || $IAD != null || $TSI != null || $ARC != null) %} <div> <p class="center bold">{$EMV_DETAILS_I18N}</p> </div> {% endif %} {% if ($AID) %} <div id="aid"> <label class="small left bold">{$AID_I18N}</label> <span class="left">{$AID}</span> </div> {% endif %} {% if ($TVR) %} <div id="tvr"> <label class="small left bold">{$TVR_I18N}</label> <span class="left">{$TVR}</span> </div> {% endif %} {% if ($IAD) %} <div id="iad"> <label class="small left bold">{$IAD_I18N}</label> <span class="left">{$IAD}</span> </div> {% endif %} {% if ($TSI) %} <div id="tsi"> <label class="small left bold">{$TSI_I18N}</label> <span class="left">{$TSI}</span> </div> {% endif %} {% if ($ARC) %} <div id="arc"> <label class="small left bold">{$ARC_I18N}</label> <span class="left">{$ARC}</span> </div> {% endif %} {% if ($TVR != null || $AID != null || $IAD != null || $TSI != null || $ARC != null) %} <div class="separator solid" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div> {% endif %} {% endif %} </main> <footer> {% if ($SUCCESS_RESPONSE != 1 && $RESPONSE != $ERROR_MESSAGE) %} <div id="error_message"> <p class="large center">{$ERROR_MESSAGE}</p> </div> <div class="separator solid" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div> {% endif %} <div class="separator" style="margin-top: 20px; margin-bottom: 20px;"></div> {% if ($SIGNATURE ) %} <div id="signature"> <img class="center" src="{$SIGNATURE}" /> </div> <div class="separator solid" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div> {% endif %} </footer> </body> </html> |
...