- Posts: 11
- Thank you received: 1
new ideal easy payment plugin
15 years 3 months ago #23424
by Edwin23
new ideal easy payment plugin was created by Edwin23
I'm trying to make a new payment plugin.
How can I implement this as simple as possible, looks a bit like Bluepaid (paying with your bank card).
The ABNAMRO Bank provides the code as stated beneath.
The var Amount has to be determined by the shop software
PSPID = shop id
<!-- 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=" 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=" internetkassa.abnamro.nl/images/iDEAL_easy.gif " alt="iDEAL" />
</button>
</form>
<!-- CODE_END -->
How can I implement this as simple as possible, looks a bit like Bluepaid (paying with your bank card).
The ABNAMRO Bank provides the code as stated beneath.
The var Amount has to be determined by the shop software
PSPID = shop id
<!-- 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=" 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=" internetkassa.abnamro.nl/images/iDEAL_easy.gif " alt="iDEAL" />
</button>
</form>
<!-- CODE_END -->
Please Log in or Create an account to join the conversation.
15 years 3 months ago - 15 years 2 months ago #23427
by hko
Replied by hko on topic Re: new ideal easy payment plugin
I created an iDEAL Payment module already for HS 1.5.3 and J! 1.7
(remember that the iDEAL Easy variant is not the best option for webstores BTW)
If interested, PM me.
(remember that the iDEAL Easy variant is not the best option for webstores BTW)
If interested, PM me.
Last edit: 15 years 2 months ago by hko.
Please Log in or Create an account to join the conversation.
13 years 7 months ago #98677
by johnh
Replied by johnh on topic new ideal easy payment plugin
Hey there Exists a Internetkassa ABN Amro Module:
www.customweb.com/shop/en/hikashop-payment-plugin-abnamro.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds