More than 1 item totals incorrectly

Technical questions relating to the iVeri Lite integration
Post Reply
wernermi
Posts: 1
Joined: Thu Jul 28, 2016 8:35 am

Thu Jul 28, 2016 12:54 pm

Hi

I have a problem with adding one than more item on the iveri app side.


For instance

line1 = R1000
line2 = R1000

total is 2000

what happens on the app side is the following:
it adds line 1 and 2 together and replace line 1 with the total of the 2 lines

so
line1 = R2000
line2 = R1000
total = R3000

It then returns an error of the totals not matching up.
I've logged a call with Nedbank but haven't heard back from them yet.
It's quite urgent.

Can someone please show me what I am doing wrong?
I've even left the top amount empty also reordering the lines ie
product1
product2
quantity1
quantity2
amount1
amount2

instead of

product1
quantity1
amount1
product2
quantity2
amount2

Thx in advance.

example code

<body>
<!-- contact-form -->
<div class="message warning">
<div class="inset">
<div class="login-head">
<h1>Donation</h1>

</div>
<form id="myform" name="myform" METHOD="POST" ACTION="https://backoffice.nedsecure.co.za/Lite ... orise.aspx">
<!-- Mandatory form variables -->
<input id="Lite_Merchant_Applicationid" name="Lite_Merchant_Applicationid" type="hidden" value="{d8b3ae1c-6e8a-41da-8c36-7323242f7e91}" readonly>
<input id="Lite_Order_Amount" name="Lite_Order_Amount" type="hidden" value="2000" readonly>
<input type="hidden" name="Lite_Website_Successful_url" value="lite/result.php" /> <!-- NEED TO BE CHANGED -->
<input type="hidden" name="Lite_Website_Fail_url" value="lite/result.php" /> <!-- NEED TO BE CHANGED -->
<input type="hidden" name="Lite_Website_TryLater_url" value="lite/result.php" /> <!-- NEED TO BE CHANGED -->
<input type="hidden" name="Lite_Website_Error_url" value="lite/result.php" /> <!-- NEED TO BE CHANGED -->

<input id="Lite_Order_LineItems_Product_1" name="Lite_Order_LineItems_Product_1" type="hidden" value="line 1 item" readonly>
<input id="Lite_Order_LineItems_Quantity_1" name="Lite_Order_LineItems_Quantity_1" type="hidden" value="1" readonly>
<input id="Lite_Order_LineItems_Amount_1" name="Lite_Order_LineItems_Amount_1" type="hidden" value="1000" readonly>
<input id="Lite_Order_LineItems_Product_2" name="Lite_Order_LineItems_Product_2" type="hidden" value="line 2 item" readonly>
<input id="Lite_Order_LineItems_Quantity_2" name="Lite_Order_LineItems_Quantity_2" type="hidden" value="1" readonly>
<input id="Lite_Order_LineItems_Amount_2" name="Lite_Order_LineItems_Amount_2" type="hidden" value="1000" readonly>

<input id="Lite_ConsumerOrderID_PreFix" name="Lite_ConsumerOrderID_PreFix" type="hidden" value="DML" readonly>
<input id="Ecom_BillTo_Online_Email" name="Ecom_BillTo_Online_Email" type="hidden" value="">
<input id="Ecom_Payment_Card_Protocols" name="Ecom_Payment_Card_Protocols" type="hidden" value="iVeri" readonly>
<input id="Ecom_ConsumerOrderID" name="Ecom_ConsumerOrderID" type="hidden" value="AUTOGENERATE">
<input id="Ecom_TransactionComplete" name="Ecom_TransactionComplete" type="hidden" value="" readonly>
<!-- End-->
<font color="red"><p class="warningtext" id="warning" name="warning" >&nbsp;</p></font>
<li>
<input type="text" autocomplete="off" id="txtEmail" name="txtEmail" class="text" value="Email Address" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Email Address';}"><a href="#" class=" icon user" tabindex="-1" ></a>
</li>
<li>
<input type="text" id="Amount" name="Amount" class="text" value="2000"><a href="#" class=" icon user" tabindex="-1"></a>
</li>


<div class="submit">
<input type="submit" id="btnsubmit" name="btnsubmit" value="Proceed" >
<h4>Please enter your email address <br>and amount to donate above</h4>
<div class="clear"> </div>
</div>

</form>
</div>
</div>
</div>
<div class="clear"> </div>
<!--- footer --->
<div class="footer">

</div>
</body>
Post Reply