News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Improved NoChex payment module

Started by AWing, July 04, 2005, 21:19:29 PM

Previous topic - Next topic

AWing

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>
Andrew Hutchings (A-Wing) - Linux Jedi
A-Wing Internet Services
Host with Xilo

madscotsman

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

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

This code no longer works for the VirtueMart 1.0.13a and Joomla! 1.0.13 Stable.

MikeUK

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:
    [li]
Search forum. You might find answer[/li]
[li]Use existing threads. Keep Q + A consolidated[/li]
[li]Troubleshooting? See http://forum.virtuemart.net/index.php?topic=60033.0[/li]
[li]For admin user manual - http://virtuemart.net/documentation/User_Manual/index.html[/li]
[li]For coding (developer manual) - http://virtuemart.net/documentation/Developer_Manual/index.html[/li][/list]

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

darrenw

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

hi guys i have a proper working nochex apc for virtuemart!!!!! woohoo  ;D

mat_nochex

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