Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default 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

    [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]

  2. #2
    Join Date
    Jun 2007
    Posts
    5
    Plugin Contributions
    0

    Default 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?

 

 

Similar Threads

  1. Replies: 2
    Last Post: 28 Feb 2011, 01:51 PM
  2. How to edit Payment Method box
    By Marlake in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Apr 2008, 04:36 PM
  3. Edit Payment Method page
    By southcarlsbad in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Apr 2007, 02:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg