Hello all,
I'd like to set up a payment method: Ideal Easy.
I cannot use the module which is being distributed to use in Zen-Cart.
I need to implement a code. I will show it at the end of this message.
In what file do I need to put this code?
Matt
[FONT=Arial]<!-- CODE_START -->[/FONT]
[FONT=Arial]<script type="text/javascript">[/FONT]
[FONT=Arial]<!-- Begin[/FONT]
[FONT=Arial]var Amount = 123;[/FONT]
[FONT=Arial]var PSPID = "TESTiDEALEASY";[/FONT]
[FONT=Arial]var AM;[/FONT]
[FONT=Arial]if (isNaN(Amount))[/FONT]
[FONT=Arial] {[/FONT]
[FONT=Arial] alert("Amount not a number: " + Amount + " !");[/FONT]
[FONT=Arial] AM = ""[/FONT]
[FONT=Arial] }[/FONT]
[FONT=Arial]else[/FONT]
[FONT=Arial] {[/FONT]
[FONT=Arial] AM = Math.round(parseFloat(Amount)*100);[/FONT]
[FONT=Arial] }[/FONT]
[FONT=Arial]var orderID = "1";[/FONT]
[FONT=Arial]mydate = new Date();[/FONT]
[FONT=Arial]tv = mydate.getYear() % 10;[/FONT]
[FONT=Arial]orderID = orderID + tv;[/FONT]
[FONT=Arial]tv = (mydate.getMonth() * 31) + mydate.getDate();[/FONT]
[FONT=Arial]orderID = orderID + ((tv < 10) ? '0' : '') + ((tv < 100) ? '0' : '') + tv;[/FONT]
[FONT=Arial]tv = (mydate.getHours() * 3600) + (mydate.getMinutes() * 60) + mydate.getSeconds();[/FONT]
[FONT=Arial]orderID = orderID + ((tv < 10) ? '0' : '') + ((tv < 100) ? '0' : '') + ((tv < 1000) ? '0' : '') + ((tv < 10000) ? '0' : '') + tv;[/FONT]
[FONT=Arial]tvplus = Math.round(Math.random() * 9);[/FONT]
[FONT=Arial]// End -->[/FONT]
[FONT=Arial]</script>[/FONT]
[FONT=Arial]<style type="text/css">[/FONT]
[FONT=Arial] label {width: 120px; text-align: left;}[/FONT]
[FONT=Arial] button.iDEALeasy {background-color: #FFFFFF;}[/FONT]
[FONT=Arial]</style>[/FONT]
[FONT=Arial]<form method="post" action="https://internetkassa.abnamro.nl/ncol/prod/orderstandard.asp" id="form1" name="form1">[/FONT]
[FONT=Arial]<script type="text/javascript">[/FONT]
[FONT=Arial]document.write("<input type=\"hidden\" NAME=\"PSPID\" value=\"" + PSPID + "\" />");[/FONT]
[FONT=Arial]document.write("<input type=\"hidden\" NAME=\"orderID\" value=\"" + (orderID + ((tvplus + 1) % 10)) + "\" />");[/FONT]
[FONT=Arial]document.write("<input type=\"hidden\" NAME=\"amount\" value=\"" + AM + "\" />");[/FONT]
[FONT=Arial]</script>[/FONT]
[FONT=Arial]<input type="hidden" name="currency" value="EUR" />[/FONT]
[FONT=Arial]<input type="hidden" name="language" value="NL_NL" />[/FONT]
[FONT=Arial]<input type="hidden" name="PM" value="iDEAL" />[/FONT]
[FONT=Arial]<button class="iDEALeasy" type="submit" name="submit1" value="submit">[/FONT]
[FONT=Arial]Betalen met<br />[/FONT]
[FONT=Arial]<img src="https://internetkassa.abnamro.nl/images/iDEAL_easy.gif" alt="iDEAL" />[/FONT]
[FONT=Arial]</button>[/FONT]
[FONT=Arial]</form>[/FONT]



