Forums / Built-in Shipping and Payment Modules / How edit payment method manually/Ideal Easy

How edit payment method manually/Ideal Easy

Locked
Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 May 2007, 19:53
#1
mstemmer avatar

mstemmer

New Zenner

Join Date:
May 2007
Posts:
9
Plugin Contributions:
0

How edit payment method manually/Ideal Easy

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

<!-- CODE_START -->

<script type="text/javascript">
<!-- Begin

var Amount = 123;
var PSPID = "TESTiDEALEASY";
var AM;

if (isNaN(Amount))
{
alert("Amount not a number: " + Amount + " !");
AM = ""
}
else
{
AM = Math.round(parseFloat(Amount)*100);
}

var orderID = "1";
mydate = new Date();
tv = mydate.getYear() % 10;
orderID = orderID + tv;
tv = (mydate.getMonth() * 31) + mydate.getDate();
orderID = orderID + ((tv < 10) ? '0' : '') + ((tv < 100) ? '0' : '') + tv;
tv = (mydate.getHours() * 3600) + (mydate.getMinutes() * 60) + mydate.getSeconds();
orderID = orderID + ((tv < 10) ? '0' : '') + ((tv < 100) ? '0' : '') + ((tv < 1000) ? '0' : '') + ((tv < 10000) ? '0' : '') + tv;
tvplus = Math.round(Math.random() * 9);
// End -->
</script>
<style type="text/css">
label {width: 120px; text-align: left;}
button.iDEALeasy {background-color: #FFFFFF;}
</style>



<form method="post" action="https://internetkassa.abnamro.nl/ncol/prod/orderstandard.asp" id="form1" name="form1">
<script type="text/javascript">
document.write("<input type=\"hidden\" NAME=\"PSPID\" value=\"" + PSPID + "\" />");
document.write("<input type=\"hidden\" NAME=\"orderID\" value=\"" + (orderID + ((tvplus + 1) % 10)) + "\" />");
document.write("<input type=\"hidden\" NAME=\"amount\" value=\"" + AM + "\" />");
</script>

<input type="hidden" name="currency" value="EUR" />
<input type="hidden" name="language" value="NL_NL" />
<input type="hidden" name="PM" value="iDEAL" />
<button class="iDEALeasy" type="submit" name="submit1" value="submit">
Betalen met<br />
<img src="https://internetkassa.abnamro.nl/images/iDEAL_easy.gif" alt="iDEAL" />
</button>
</form>
19 Jun 2007, 14:16
#2
volanttantes avatar

volanttantes

New Zenner

Join Date:
Jun 2007
Posts:
5
Plugin Contributions:
0

Re: How edit payment method manually/Ideal Easy

Yeah, I'd like to know this as well,... to get Ideal Easy to work isn't that hard, but how do you get Zen-cartt to give it as an option? Is there a way to manually add a payment option?