VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Payment Modules => Topic started by: AWing on July 04, 2005, 21:19:29 PM

Title: Improved NoChex payment module
Post by: AWing 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:


<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>
Title: Re: Improved NoChex payment module
Post by: madscotsman 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??
Title: Re: Improved NoChex payment module
Post by: AWing 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.
Title: Re: Improved NoChex payment module
Post by: foo 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.
Title: Re: Improved NoChex payment module
Post by: MikeUK 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.

Title: Re: Improved NoChex payment module
Post by: darrenw 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 (http://forum.virtuemart.net/index.php?topic=23159.0).

It seems to work well with my setup.
Title: Re: Improved NoChex payment module
Post by: rstepos on July 23, 2010, 14:48:08 PM
hi guys i have a proper working nochex apc for virtuemart!!!!! woohoo  ;D
Title: Re: Improved NoChex payment module
Post by: mat_nochex on July 23, 2010, 16:07:35 PM
Hi all,

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

Kind Regards,
Matthew Iveson
Nochex Technical Support