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&page=checkout.result&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>
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??
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.
This code no longer works for the VirtueMart 1.0.13a and Joomla! 1.0.13 Stable.
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.
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.
hi guys i have a proper working nochex apc for virtuemart!!!!! woohoo ;D
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