Author Topic: Improved NoChex payment module  (Read 10003 times)

AWing

  • Beginner
  • *
  • Posts: 7
    • A-Wing Internet Services
Improved NoChex payment module
« on: July 04, 2005, 21:19:29 pm »
Here is my improved NoChex payment module code which passes address and e-mail data to NoChex as well:

Code: [Select]
<form action="https://www.nochex.com/nochex.dll/checkout" method=post target="_blank">
                                                <input type="hidden" name="email" value="<?php echo NOCHEX_EMAIL ?>" />
                                                <input type="hidden" name="amount" value="<?php printf("%.2f"$db->f("order_total"))?>" />
                                                <input type="hidden" name="ordernumber" value="<?php $db->p("order_id"?>" />
                                                <input type="hidden" name="logo" value="<?php echo $vendor_image_url ?>" />
                                                <input type="hidden" name="returnurl" value="<?php echo SECUREURL ."index.php?option=com_phpshop&amp;page=checkout.result&amp;order_id=".$db->f("order_id"?>" />
    <input type="hidden" name="firstname" value="<?php echo $user->first_name?>" />
    <input type="hidden" name="lastname" value="<?php echo $user->last_name?>" />
    <input type="hidden" name="firstline" value="<?php echo $user->address_1?>" />
    <input type="hidden" name="town" value="<?php echo $user->address_2?>" />
    <input type="hidden" name="county" value="<?php echo $user->city?>" />
    <input type="hidden" name="postcode" value="<?php echo $user->zip?>" />
    <input type="hidden" name="email_address_sender" value="<?php echo $user->user_email?>" />
                                                <input type="image" name="submit" SRC="http://www.nochex.com/web/images/paymeanimated.gif">
<br><b>Click the icon above to pay</b>

 
                                                </form>
Andrew Hutchings (A-Wing) - Linux Jedi
A-Wing Internet Services
Host with Xilo

madscotsman

  • Jr. Member
  • **
  • Posts: 124
    • Nav-e-gate4less - Reduced price GPS mapping software including Anquet, Memory Map and Fugawi, Magellan handheld GPS, Garmin GPS accessories
Re: Improved NoChex payment module
« Reply #1 on: August 25, 2006, 19:08:37 pm »
How do you go about using it?? Pardon my ignorance but I tried copying the code into a new module in my site. I am using virtuemart 1.0.6 and Joomla 1.0.10. I don't seem to have a Nochex payment module. I downloaded the virtuemart complete package.

I would like to get nochex working on my siteas I only have paypal working at the moment

Suggestions??

AWing

  • Beginner
  • *
  • Posts: 7
    • A-Wing Internet Services
Re: Improved NoChex payment module
« Reply #2 on: August 26, 2006, 14:03:08 pm »
Do bear in mind I wrote that code over a year ago, back when VirueMart was Mambo-phpshop.  It did use to work by pasting the code into a PayPal type payment module.
I have even better code than that stored somewhere which handles the NoChex return code nicely.  Unfortunately I  don't use VitueMart on anything currently so I can only currently do payment modules on a freelance basis.
Andrew Hutchings (A-Wing) - Linux Jedi
A-Wing Internet Services
Host with Xilo

foo

  • Beginner
  • *
  • Posts: 8
Re: Improved NoChex payment module
« Reply #3 on: December 27, 2007, 19:30:16 pm »
This code no longer works for the VirtueMart 1.0.13a and Joomla! 1.0.13 Stable.

MikeUK

  • Global Moderator
  • Full Member
  • *
  • Posts: 1344
Re: Improved NoChex payment module
« Reply #4 on: April 05, 2008, 17:41:29 pm »
Seems to work fine in 1.015, so probably worked in 1.0.13a

Perhaps posters could post why or how they tested before saying it 'doesn't work'. I almost didn't try this because of foo's post

Just a quick comparison of this code and the standard code will tell you it is the same in later versions of VM.

All I want to figure out now is how to not allow users to change the address at the checkout stage. Nochex has instructions for this but they are hard to follow and there is no example as to where to put the 'hide_billing_details=true' code.

Get answers faster:

I can build your online shop, setup or customize Virtuemart or help your existing shop maximize its potential. Email / PM for info

darrenw

  • Beginner
  • *
  • Posts: 7
Re: Improved NoChex payment module
« Reply #5 on: August 01, 2008, 17:49:02 pm »
Hi I'm using joomla 1.5 with VirtueMart 1.1.0 , i've created a more updated version of the code here http://forum.virtuemart.net/index.php?topic=23159.0.

It seems to work well with my setup.

rstepos

  • Beginner
  • *
  • Posts: 13
Re: Improved NoChex payment module
« Reply #6 on: July 23, 2010, 14:48:08 pm »
hi guys i have a proper working nochex apc for virtuemart!!!!! woohoo  ;D

mat_nochex

  • Beginner
  • *
  • Posts: 3
Re: Improved NoChex payment module
« Reply #7 on: July 23, 2010, 16:07:35 pm »
Hi all,

Read the post http://forum.virtuemart.net/index.php?topic=73695.0
to get the APC files and guide necessary.

Kind Regards,
Matthew Iveson
Nochex Technical Support