Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<HtmlReceiptTemplate><![CDATA[
<html>
    <head></head>
    <body>
        <header>
            <img class="center" src="https://hndpt.co/34r676D"/>
            {% if ($MERCHANT_NAME) %}
            <div><div id="merchant_name">
                <p class="large bold center">{$MERCHANT_NAME}</p>
            </div>
            {% endif %}
            {% if ($MERCHANT_LOCATION) %}
             <div><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_LABEL) %}
         <div>   <div id="response">
        <p class="large bold       <p class="large bold center">{$RESPONSE_LABEL}</p>
            </div>
            {% elseIf ($RESPONSE) %}
            <div id="response">
   <div>             <p class="large bold center">{$RESPONSE}</p>
            </div>
            {% endif %}
            {% if ($TXN_TYPE_LABEL) %}
         <div>   <div id="txn_type">
        <p class        <p class="large bold center">{$TXN_TYPE_LABEL}</p>
        </div>    </div>
    {% elseIf ($TXN_TYPE) %}     {%    <div>
            <p class="large bold center">{$TXN_TYPE}</p>
   endif %}
    </div>         {% endifif ($AMOUNT) %}
 
      {% if ($AMOUNT) %}    <div id="amount">
   <div>             <p class="xlarge bold center">{$AMOUNT|currency($CURRENCY)}</p>
            </div>
            {% endif %}
            <div class="separator dotted" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div>
            {% if ($MID) %}
        <div>    <div id="mid">
                <label class="left bold">{$MID_LABEL}</label>
                <span class="right">{$MID}</span>
            </div>
            {% endif %}
            {% if ($TID) %}
            <div id="tid">
     <div>             <label class="left bold">{$TID_LABEL}</label>
                <span class="right">{$TID}</span>
            </div>
            {% endif %}
            {% if ($CARD_NUMBER) %}
            <div id="card_number">
   <div>             <label class="left bold">{$APP_LABEL}</label>
                <span class="right">{$CARD_NUMBER}</span>
            </div>
            {% endif %}
            {% if ($ENTRY) %} %}
            <div id="entry">
   <div>             <label class="left bold">{$ENTRY_LABEL}</label>
                <span class="right">{$ENTRY}</span>
            </div>
            {% endif %}
            {% if ($CVM != null) && ($TXN_TYPE != "SALE VOID") %}
             <div id="cvm">
   <div>             <label class="left bold">{$CVM_LABEL}</label>
                <span class="right">{$CVM}</span>
            </div>
            {% endif %}
            {% if ($AUTH_CODE) %}
            <div id="auth_code">
   <div>             <label class="left bold">{$AUTH_CODE_LABEL}</label>
                <span class="right">{$AUTH_CODE}</span>
            </div>
            {% endif %}
            <div class="separator dotted" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div>
            {% if ($REFERENCE) %}}
            <div>
   <div>             <p class="left bold">GUID</p>
            </div>
         <div>   <div id="guid">
                <p class="small left">{$REFERENCE}</p>
            </div>
            {% endif %}
            <div class="separator dotted" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div>
            {% if ($RECEIPT_TYPE_DESCRIPTION) %}
         <div>   <div id="receipt_type_description">
                <p class="center">{$RECEIPT_TYPE_DESCRIPTION}</p>p>
            </div>
            {% endif %}
            <div class="separator solid" style="margin-top: 10px; height: 2px; margin-bottom: 10px;"></div>
            {% if ($SWIPE != 1) %}
                {% if ($AID$TVR != null || $AID != $TVRnull || $IAD != null || $TSI || $ARC) %} != null || $ARC != null) %}
                <div>
     <div>               <p class="center bold">{$EMV_DETAILS_LABEL}</p>
                </div>
                {% endif %}
                {% if ($AID) %}
                 <div><div id="aid">
                    <label class="small left bold">{$AID_LABEL}</label>
                    <span class="left">{$AID}</span>
                </div>div>
                {% endif %}
                {% if ($TVR) %}
           <div>     <div id="tvr">
                    <label class="small left bold">{$TVR_LABEL}</label>
                    <span class="left">{$TVR}</span>
                </div>
                {% endif %}
                {% if ($IAD) %}}
                <div id="iad">
     <div>               <label class="small left bold">{$IAD_LABEL}</label>
                    <span class="left">{$IAD}</span>
                </div>
                {% endif %}
                {% if ($TSI) %}
           <div>     <div id="tsi">
                    <label class="small left bold">{$TSI_LABEL}</label>
                    <span class="left">{$TSI}</span>
                </div>
                {% endif %}
                {% if ($ARC) %}
              <div>  <div id="arc">
                    <label class="small left bold">{$ARC_LABEL}</label>
                    <span class="left">{$ARC}</span>
                </div>
                {% endif %}
                {% if ($AID || $TVR 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">
   <div>             <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>   <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>
]]>
</HtmlReceiptTemplate>

...