[CONTRIBUTION] Nochex APC Payment Module
#221
Posted 18 November 2005, 13:50
I have just installed the APC module and all seemed fine until I logged into admin and clicked payments to add in my nochex details. I still only get the NOCHEX option in the list of payment systems and when I choose to edit it I don't get the extra options with the testing, apc url etc. just the same options as before I installed the APC module.
Additionally the nochex notify php file doesn't seem to respond to a fire from the nochex site. I have another APC responder in another directory which has worked fine for ages. I wondered if it was permissions stopping the response but the notify file has the same permissions as my current apc responder file. Also my current responder file responds fine when put in the same directory as the the new one so it can't be directory access that's the problem.
I have scratched my head and read the whole of this thread but the queries similar to mine don't seem to have had a response except that one should try reinstalling, which I have tried.
Any help appreciated.
Thanks
#222
Posted 18 November 2005, 15:43
bennypants, on Nov 18 2005, 01:50 PM, said:
I have just installed the APC module and all seemed fine until I logged into admin and clicked payments to add in my nochex details. I still only get the NOCHEX option in the list of payment systems and when I choose to edit it I don't get the extra options with the testing, apc url etc. just the same options as before I installed the APC module.
Additionally the nochex notify php file doesn't seem to respond to a fire from the nochex site. I have another APC responder in another directory which has worked fine for ages. I wondered if it was permissions stopping the response but the notify file has the same permissions as my current apc responder file. Also my current responder file responds fine when put in the same directory as the the new one so it can't be directory access that's the problem.
I have scratched my head and read the whole of this thread but the queries similar to mine don't seem to have had a response except that one should try reinstalling, which I have tried.
Any help appreciated.
Thanks
Sussed it after having my wife perform a chiropratic adjustment to my upper spine!
I had failed as I assume others with similar problems, to properly check that I had uploaded all of the necesarry files to the server. I thought I had been very meticulous but had missed some of the 'outer admin' php scripts duh.
Hope that helps someone else too!
#223
Posted 19 November 2005, 23:22
My problem is that it never redirects the user to the NOCHEX screen to process the credit card, it just sits on the checkout_nochex.php page, and shows the header and footer to the page - with no information in the middle
Can anyone help??! am suppsed to be going live on monday.. java script:emoticon("
smilie
my store can be found at http://www.liparazzi.com/catalog
----------
www.preciousmetal-online.co.uk
www.liparazzi.com
www.yaoh.co.uk
#224
Posted 19 November 2005, 23:42
Perfect Eye, on Sep 29 2005, 06:24 PM, said:
Hi I was experiencing similar problems but have found a solution:
create a copy of the file 'catalog/includes/application_top.php' and rename it to 'catalog/includes/nochex_apptop.php'
open up nochex_apptop.php and remove the following lines:
// STS: ADD: Allow disabling of ALL STS capture and display routines by setting this variable or passing ?no_sts=1 as a parameter
$no_sts=0;
if ($HTTP_GET_VARS["no_sts"] > 0) {
$no_sts=1;
}
// STS: EOADD
// STS: ADD
// Capture text between application_top.php and header.php
require(STS_START_CAPTURE);
// STS: EOADD
open up 'checkout_nochex.php' and change the following line:
include('includes/application_top.php');
to
include('includes/nochex_apptop.php');
upload the changes..
Worked for me
----------
www.preciousmetal-online.co.uk
www.liparazzi.com
www.yaoh.co.uk
#225
Posted 22 November 2005, 20:19
Ive just got round to installing this contribution, but im having a few problems. I would be greatful if you could glance over my settings and let me know what you think may be going wrong.
First of all, Curl is installed: (From server info in the tools menu):
curl
CURL support enabled
CURL Information libcurl/7.11.2 OpenSSL/0.9.7d ipv6 zlib/1.1.4
The installion of the actual module was easy, ive double checked it. My settings are:
Enable NOCHEX Module
True
Functionality Mode
Test
Logo to display
https://www.mysticaleast.co.uk/images/mainlogo.gif
Enable NOCHEX APC Responder
True
APC Responder Module Address
http://www.mysticaleast.co.uk/nochex_notify.php
E-Mail Address
nochex@mysticaleast.co.uk
Update Stock Before Payment
False
Payment Zone
--none--
Set Order Status
Nochex Authorised
Sort order of display.
0
Debug Email Code
True
When I go through my site and try to buy something, I get to the nochex screens OK. I then enter the test credentials, this brings me back to my site as expected.
I get two emails, one is blank with the title: NOCHEX VALIDITY RESPONSE: NO RESPONSE
The second contains this information (every time):
Opening connection
Raw Response from Nochex:
Checking Response
Result: Now checking order and updating as necessary
Completed APC notify script!
And has the Subject Debug Code.
My stock has not updated and the cart has not reset (I tried the reset hack mentioned but this doesnt help in updating the stock). I have no transaction entries either.
If I go to the test screen (on nochex) directly and enter the path to the notify script I get nothing (nochex says it works however with some stats onscreen).
Now ive run out of ideas.
What do you suggest? Ive read this thread twice now and don't seem to have picked out the right information to help me fix this.
Thanks for your time...
#226
Posted 23 November 2005, 12:45
This may help all you guys who never solved the NO RESPONSE problem.
It seemed the problem lay with CURL not being able to verify NOCHEX's SSL certificate. This is what I did...
In nochex_notify.php, around line 65, I added this CURL option:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
This tells curl not to verify the the peer, and it made everything just fall into place.
So in a nutshell, change this block of code:
/* set connection time out variable. */ curl_setopt ($ch, CURLOPT_TIMEOUT, 60); /* set openSSL version variable to 3. */ curl_setopt ($ch, CURLOPT_SSLVERSION, 3); /* Post back */ $output = curl_exec($ch); $msg .= $output . "\n";
To this:
/* set connection time out variable. */ curl_setopt ($ch, CURLOPT_TIMEOUT, 60); /* set openSSL version variable to 3. */ curl_setopt ($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); /* Post back */ $output = curl_exec($ch); $msg .= $output . "\n";
Let me know if I can be of any help.
Good luck!
#227
Posted 26 November 2005, 14:57
Everything working great. Been live for a few days now and no problems except I wondered if it was possible to add the item description to the submitted form which loads the nochex dll. As it is I have to go to the store admin in order to see what the customer has purchased because no description is forwarded to the nochex checkout. It's only the addition of description=etc to the submit, but I wasn't sure where this would need to be altered in the php files. On my other store I receive the product description in the nochex email but don't using this one.
Cheers in advance.
Ben
#228
Posted 26 November 2005, 16:16
bennypants, on Nov 26 2005, 02:57 PM, said:
Everything working great. Been live for a few days now and no problems except I wondered if it was possible to add the item description to the submitted form which loads the nochex dll. As it is I have to go to the store admin in order to see what the customer has purchased because no description is forwarded to the nochex checkout. It's only the addition of description=etc to the submit, but I wasn't sure where this would need to be altered in the php files. On my other store I receive the product description in the nochex email but don't using this one.
Cheers in advance.
Ben
I always seem to suss it out before I get a reply lol
Just added
tep_draw_hidden_field('description', $products_ordered) .
tep_draw_hidden_field('readonly', 'true') .
to checkout_nochex.php
Eureka!
#229
Posted 02 December 2005, 15:50
I have installed this contrib and i have some problems. On trying to go thru checkout i get the following error:
Fatal error: Call to undefined function: tep_session_is_registered() in C:\Domains\homesweetholland.co.uk\wwwroot\catalog\new\checkout_nochex.php on line 16
I did do the above solution for people with STS (which i have) as it was blank before.
Quote
if (!tep_session_is_registered('customers_id')) {
$navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
Line 16 is the line which starts with if. I already changed it from customer_id to customers_id as that is lower down in the array. I am not sure where else to look.
Also I tried the test APC, but not got any emails at all. Any idea there?
Thanks, this is the last contrib i want to install then i can start designing. Please help.
Giovanna
#230
Posted 13 December 2005, 00:44
heres a quick rundown
1, add item to basket
2, run through the OSC checkout, select Secure (SSL) Payment via Nochex
3, i enter the payment details via the test1 account
4, i confirm payment and get taken to a nochex page (https://www.nochex.com/nochex.dll/checkout_success.php) with the error of - Sorry! The page you are looking for cannot be found.
I've checked my settings and the APC responder address is set correctly to http://www.mypage.co.uk/shop/nochex_notify.php (mypage is made up for this:)
I've re-read this thread but can't find a concrete answer on how to fix this, i've been at it for nearly 12 hours now
any help of any kind is appreciated
#231
Posted 15 December 2005, 19:02
I have installed the Nochex APC module, edited all the required pages, added the required php pages, and updated the sql.
Why oh why do i not see the Nochex APC module in the admin payment modules.
I only have the original Nochex module.
Any ideas, getting desperate!
#232
Posted 16 December 2005, 05:32
jazzcat, on Dec 15 2005, 07:02 PM, said:
I have installed the Nochex APC module, edited all the required pages, added the required php pages, and updated the sql.
Why oh why do i not see the Nochex APC module in the admin payment modules.
I only have the original Nochex module.
Any ideas, getting desperate!
make sure you installed the files in the correct directory. Its easy to place them in the admin/includes directory by mistake, but you should place them in the catalog/includes...
Ian
#233
Posted 03 January 2006, 19:54
I have tested the code again with the debug emails and everything seems OK but if I do a 'spoof' transaction then it is correctly declined but not passed back to my site and updated. Is this because when a transaction is declined then it stays on the Nochex page? If so, who would you ever get notified of a declined transaction?
Thanks in advance, I'm just a bit concerned that I may be losing business!
#234
Posted 03 January 2006, 20:18
#235
Posted 13 January 2006, 16:42
Ive installed this module, and i believe ive got it working ok. Because when i do a test using the nochex test account, i get the "nochex authorised" in the Customers Order Part of the admin, and im returned back to the shop.
Ive also installed ImprovedOrderNumber contribution where the order numbers are like: 040919-474718-0009
My question is in the Admin box Nochex APC>Tranactions I get a Nochex Order ID, of for example "4" for one sale. in my order section its listed as 060113-452211-0004
Now is this Nochex order ID is my order number meant to be a unique Nochex order number generated by nochex????
If its meant to be my order ID, how do i fix this so both reflect the correct order number?
#236
Posted 13 January 2006, 16:49
#237
Posted 16 January 2006, 20:08
http://www.electronica.org.uk/catalog/FILE...CKOUT_NOCHEXAPC
Keep getting that message when I get past past the confirmation screen.
According to a previous response for someone elses problem I may not have defined FILENAME_CHECKOUT_NOCHEXAPC in filenames.php.
Ive included:
define('FILENAME_CHECKOUT_NOCHEXAPC', 'checkout_nochex.php'); // NOCHEXAPC
to includes/filenames.php
and made sure I've uploaded checkout_nochex.php to the root catalog directory.
Can't work it out. If anyone can help I'd be really grateful!
Matthew
#238
Posted 16 January 2006, 21:07
ordio_enjinn, on Jan 16 2006, 08:08 PM, said:
http://www.electronica.org.uk/catalog/FILE...CKOUT_NOCHEXAPC
Keep getting that message when I get past past the confirmation screen.
According to a previous response for someone elses problem I may not have defined FILENAME_CHECKOUT_NOCHEXAPC in filenames.php.
Ive included:
define('FILENAME_CHECKOUT_NOCHEXAPC', 'checkout_nochex.php'); // NOCHEXAPC
to includes/filenames.php
and made sure I've uploaded checkout_nochex.php to the root catalog directory.
Can't work it out. If anyone can help I'd be really grateful!
Matthew
More info for anyone who can help (maybe!)
The html shows the 'confirm order' button form as:
<form name="checkout_confirmation" action="http://www.electronica.org.uk/catalog/FILENAME_CHECKOUT_NOCHEXAPC" method="post"><input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order "></form>
Should that link really be a link to a php file.
Sorry if I'm clutching at straws but I'm learning this as I go along!
Matthew
#239
Posted 16 January 2006, 21:27
The html shows the 'confirm order' button form as:
<form name="checkout_confirmation" action="http://www.electronica.org.uk/catalog/FILENAME_CHECKOUT_NOCHEXAPC" method="post"><input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order "></form>
Should that link really be a link to a php file.
Sorry if I'm clutching at straws but I'm learning this as I go along!
Matthew[/quote]
Hi Mathew, the problem is definately within the line in your filenames.php file within the folder /catalog/includes
The first things to check are:
1) Open catalog/includes/filenames.php again and make sure you have added the line correctly, misspellings are comon as are upper / lower case letters. It is also possible to get mixed up between the two different filename.php files (one is in catalog/includes, the other is in catalog/admin/includes.)
2) Upload the file filenames.php back into your catalog/includes folder.
3) Clear all of your browsers cache and go back through the checkout process again.
You are right, the filename within the form should be a .php file, however, that is the whole idea of defining the filename within the filename.php file.
when the php code sees, "FILENAME_CHECKOUT_NOCHEXAPC", it knows to replace the line with the defined value, in this case "checkout_nochex.php"
Regards
Mark.
#240
Posted 16 January 2006, 22:40
marcoh, on Jan 16 2006, 09:27 PM, said:
The first things to check are:
1) Open catalog/includes/filenames.php again and make sure you have added the line correctly, misspellings are comon as are upper / lower case letters. It is also possible to get mixed up between the two different filename.php files (one is in catalog/includes, the other is in catalog/admin/includes.)
2) Upload the file filenames.php back into your catalog/includes folder.
3) Clear all of your browsers cache and go back through the checkout process again.
You are right, the filename within the form should be a .php file, however, that is the whole idea of defining the filename within the filename.php file.
when the php code sees, "FILENAME_CHECKOUT_NOCHEXAPC", it knows to replace the line with the defined value, in this case "checkout_nochex.php"
Regards
Mark.
Thanks for the advice Mark,
I've checked all that, but still seem to have the same problem???
This has been confusing me for hours now!
Matthew














