mysticaleast Posted November 23, 2005 Share Posted November 23, 2005 IVE FIXED IT!!! 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! Quote Link to comment Share on other sites More sharing options...
bennypants Posted November 26, 2005 Share Posted November 26, 2005 Hi People, 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 Quote Link to comment Share on other sites More sharing options...
bennypants Posted November 26, 2005 Share Posted November 26, 2005 Hi People, 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! Quote Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2005 Share Posted December 2, 2005 Hi, 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. // if the customer is not logged on, redirect them to the login page 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted December 13, 2005 Share Posted December 13, 2005 Hi all, installed this and nearly have everything working ok exept that part right after i enter my CC details 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 Quote Link to comment Share on other sites More sharing options...
jazzcat Posted December 15, 2005 Share Posted December 15, 2005 Please help, i'm going mad! 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! Quote Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2005 Share Posted December 16, 2005 Please help, i'm going mad! 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! Hi 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2006 Share Posted January 3, 2006 Hi, I've had this contribution installed for a couple of months now and I thought it was working fine but the last 2 transactions have neither been authorised nor declined. I thought at first that the customer had decided against the purchase at checkout but now I'm unsure. 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! :huh: Quote Link to comment Share on other sites More sharing options...
Guest Posted January 3, 2006 Share Posted January 3, 2006 Well I've just done a live transaction with my own card and everything went through OK so maybe there isn't a problem after all! Quote Link to comment Share on other sites More sharing options...
Pilly Posted January 13, 2006 Share Posted January 13, 2006 Hi, 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? Quote Link to comment Share on other sites More sharing options...
Pilly Posted January 13, 2006 Share Posted January 13, 2006 Also when i return to the shop, items are still in the cart, has this been fixed by anyone? Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2006 Share Posted January 16, 2006 I reckon this is a really simple one but I can't fathom it out! 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2006 Share Posted January 16, 2006 I reckon this is a really simple one but I can't fathom it out! 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2006 Share Posted January 16, 2006 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 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. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2006 Share Posted January 16, 2006 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. 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2006 Share Posted January 16, 2006 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 Matthew, do you want to put your filenames.php up for viewing, or pm it to me. Mark. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2006 Share Posted January 16, 2006 Matthew, do you want to put your filenames.php up for viewing, or pm it to me. Mark. Thanks again Mark. Here's 'catalog/includes/filenames.php' <?php /* $Id: filenames.php,v 1.4 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // define the filenames used in the project define('FILENAME_ACCOUNT', 'account.php'); define('FILENAME_ACCOUNT_EDIT', 'account_edit.php'); define('FILENAME_ACCOUNT_HISTORY', 'account_history.php'); define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php'); define('FILENAME_ACCOUNT_NEWSLETTERS', 'account_newsletters.php'); define('FILENAME_ACCOUNT_NOTIFICATIONS', 'account_notifications.php'); define('FILENAME_ACCOUNT_PASSWORD', 'account_password.php'); define('FILENAME_ADDRESS_BOOK', 'address_book.php'); define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php'); define('FILENAME_ADVANCED_SEARCH', 'advanced_search.php'); define('FILENAME_ADVANCED_SEARCH_RESULT', 'advanced_search_result.php'); define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php'); define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php'); define('FILENAME_CHECKOUT_NOCHEXAPC', 'checkout_nochex.php'); define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php'); define('FILENAME_CHECKOUT_PAYMENT_ADDRESS', 'checkout_payment_address.php'); define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php'); define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php'); define('FILENAME_CHECKOUT_SHIPPING_ADDRESS', 'checkout_shipping_address.php'); define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php'); define('FILENAME_CONTACT_US', 'contact_us.php'); define('FILENAME_CONDITIONS', 'conditions.php'); define('FILENAME_COOKIE_USAGE', 'cookie_usage.php'); define('FILENAME_CREATE_ACCOUNT', 'create_account.php'); define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php'); define('FILENAME_DEFAULT', 'index.php'); define('FILENAME_DOWNLOAD', 'download.php'); define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php'); define('FILENAME_LOGIN', 'login.php'); define('FILENAME_LOGOFF', 'logoff.php'); define('FILENAME_NEW_PRODUCTS', 'new_products.php'); define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php'); define('FILENAME_POPUP_IMAGE', 'popup_image.php'); define('FILENAME_POPUP_SEARCH_HELP', 'popup_search_help.php'); define('FILENAME_PRIVACY', 'privacy.php'); define('FILENAME_PRODUCT_INFO', 'product_info.php'); define('FILENAME_PRODUCT_LISTING', 'product_listing.php'); define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php'); define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php'); define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php'); define('FILENAME_PRODUCTS_NEW', 'products_new.php'); define('FILENAME_REDIRECT', 'redirect.php'); define('FILENAME_REVIEWS', 'reviews.php'); define('FILENAME_SHIPPING', 'shipping.php'); define('FILENAME_SHOPPING_CART', 'shopping_cart.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_SSL_CHECK', 'ssl_check.php'); define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php'); ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted January 17, 2006 Share Posted January 17, 2006 HI Matthew, The doesn't seam to be any problem with your filenames.php file. The only other place where there may be a problem is with the nochexapc.php within your catalog/includes/modules/payment folder. Look for the line (approx line 40): $this->form_action_url = tep_href_link(FILENAME_CHECKOUT_NOCHEXAPC,'','SSL'); Make sure there are no quotation marks around the FILENAME_CHECKOUT_NOCHEXAPC The only other thing that I can think of is if you are using a shared SSL. If you are, you have to make sure you have copied the filenames.php file onto the shared ssl server as well. Hope this helps. Mark. Quote Link to comment Share on other sites More sharing options...
mercunium Posted February 15, 2006 Share Posted February 15, 2006 Installed everything as per instructions (as far as I know!), running in test mode with debug operational and when going to Admin -> Nochex APC -> Transactions, I am presented with this following: NOCHEX APC 1146 - Table 'mearmar_osc1.nochexapc_transactions' doesn't exist select count(*) as total from nochexapc_transactions [TEP STOP] Nochex Order ID Amount Result Date Action I added the SQL bit using phpMyAdmin and as far as I know, it worked. Any help most appreciated! Cheers, Mark. Quote Link to comment Share on other sites More sharing options...
sjbuzzz Posted February 24, 2006 Share Posted February 24, 2006 Hi, I have added the nochex APC to my site but when I go to test it from the nochex apc website https://www.nochex.com/nochex.dll/apc/testapc I get the folling code after entering my website address A test APC has been sent to: - http://www.4ycn.co.uk/nochex_notify.php With the following information: - transaction_id=549078 transaction_date=24/02/2006 22:03:38 order_id=999999 amount=1.99 [email protected] [email protected] security_key=10559 however no transaction shows in my noxhex APC and I do not get a debug email sent. Also when I go to my shop I get the following error meassage instead of my homepage Parse error: parse error, unexpected T_STRING in /home/ycnco/public_html/includes/database_tables.php on line 59 Any Ideas Quote Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2006 Share Posted February 25, 2006 Hi, I have added the nochex APC to my site but when I go to test it from the nochex apc website https://www.nochex.com/nochex.dll/apc/testapc I get the folling code after entering my website address A test APC has been sent to: - http://www.4ycn.co.uk/nochex_notify.php With the following information: - transaction_id=549078 transaction_date=24/02/2006 22:03:38 order_id=999999 amount=1.99 [email protected] [email protected] security_key=10559 however no transaction shows in my noxhex APC and I do not get a debug email sent. Also when I go to my shop I get the following error meassage instead of my homepage Parse error: parse error, unexpected T_STRING in /home/ycnco/public_html/includes/database_tables.php on line 59 Any Ideas Quote Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2006 Share Posted February 25, 2006 Parse error: parse error, unexpected T_STRING in /home/ycnco/public_html/includes/database_tables.php on line 59 Ooops, too early in the morning, hit the add button above before typing in my reply Dohhhhhh! Hi Steven, The most logical explanation to the error you are getting would be a missing ; (semi-colon) at the end of line 58 in your database_tables.php file. Presumably, line 59 is the new line that you added. The other explanation would be that one of your values in line 59 is not with in single quotation marks. Mark Quote Link to comment Share on other sites More sharing options...
sjbuzzz Posted February 25, 2006 Share Posted February 25, 2006 Ooops, too early in the morning, hit the add button above before typing in my reply Dohhhhhh! Hi Steven, The most logical explanation to the error you are getting would be a missing ; (semi-colon) at the end of line 58 in your database_tables.php file. Presumably, line 59 is the new line that you added. The other explanation would be that one of your values in line 59 is not with in single quotation marks. Mark Thanks it was a missing ; from line 58. told you I didn't know anything Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2006 Share Posted April 3, 2006 Hi guys, thanks for such great work with this contribution, just need to fix a little problem; When the customer goes through the checkout process and reach the nochex checkout page on the nochex website, all the customers details appear there auto filled, apart from the surname! Trivial little problem, but could easily be over looked by my customer, as all the other details are entered correctly! .... PS keep up the good work Mark and everyone else who have supported this contribution.. Reading through this thread has been so useful with setting up APC and i can see a lot of time has been dedicated to supporting the community........ well done! Darren :thumbsup: Quote Link to comment Share on other sites More sharing options...
widdowsonsltd Posted May 11, 2006 Share Posted May 11, 2006 Hello, I have just installed this contribution, I have only run it in test mode, should it set the status to Nochex authorised when it has completed the transaction, mine stays on nochex processing, I wanted to know if it was working before doing live transactions. many thanks Ian Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.