Neuronico Posted April 30, 2014 Share Posted April 30, 2014 Hello everybody. I saw that this has been asked several times but as far as i can see there wasn't a definite answer to that issue, so i would kindly ask you to give me a hand here. I am experimenting with 2Checkout and oscommerce to see if 2Checkout fits my needs. I created a sandbox account with 2Checkout and i started placing orders to see how it works..after checkout and succesful payment i dont get redirected to http://mywebsite.xxx/whatever/catalog/pm2checkout_process.php but instead stays on checkout_confirmation.php page. And of course i can not see the order on the admin section, i get the email though. So following the different answers posted before for the similar issue first i set the cookie paths to my configure.php file define('HTTP_COOKIE_DOMAIN', 'http://mywebsite.xxx'); define('HTTPS_COOKIE_DOMAIN', 'https://mywebsite.xxx'); define('HTTP_COOKIE_PATH', '/mywebsite.xxx/catalog/'); define('HTTPS_COOKIE_PATH', '/mywebsite.xxx/catalog/'); That didnt change things so i also set force cookie use to true but that resulted in getting the cookie usage page that warns me that i have cookies disabled. So my question what else i should do to finalize the order in test mode. Will this problem disappear in production mode? Does it have to do with ssl certificates? i tried to place the order both through http and https but i get the same result. Can it be that my web hosting provider is block redirection to my website from the 2Checkout page? By the way the reason why i chose 2Checkout payment gateway is that it doesnt have a monthly fee and i am not sure if my website will have a large amount of sales. Can you propose any other payment gateway without monthly fees to check? Thank you in advance Quote Link to comment Share on other sites More sharing options...
Neuronico Posted April 30, 2014 Author Share Posted April 30, 2014 Even though nobody seems to know the answer to this issue, i hope i can give you a hint. I noticed that pm2checkout_process.php has the following line of code.. <form name="twocoprocessform" method="POST" action="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . 'checkout_process.php'; ?>"> When i checked with the configuration.php file i noticed that there is a DIR_WS_HTTP_CATALOG and a DIR_WS_HTTPS_CATALOG but no DIR_WS_CATALOG definition.So i went on and deifined it but that didnt help. My intuition is that the pm2checkout_process.php never loads. So lets resume and correct me if i am wrong. When your oscommerce installation is on htttp://www.mydomain.com/whatever/catalog the correct settings for the configuration.php file would be... define('HTTP_SERVER', 'http://www.mydomain.com'); define('HTTPS_SERVER', 'https://www.mydomain.com'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'http://www.mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'https://www.mydomain.com'); define('HTTP_COOKIE_PATH', '/whatever/catalog/'); define('HTTPS_COOKIE_PATH', '/whatever/catalog/'); define('DIR_WS_HTTP_CATALOG', '/whatever/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/whatever/catalog/'); define('DIR_WS_CATALOG', '/whatever/catalog/'); And on the 2checkout sandbox options i have as url to redirect https://www.mydomain.com/whatever/catalog/pm2checkout_process.php The support from 2checkout told me that even if i leave the url blank the 2checkout module for oscommerce should have redirected me there by default (not sure if that is true) Any help would be appreciated as i starting getting very tired with this issue Quote Link to comment Share on other sites More sharing options...
Harald Ponce de Leon Posted April 30, 2014 Share Posted April 30, 2014 (edited) Please remove the addition of the DIR_WS_CATALOG constant - this is already defined in catalog/includes/application_top.php. Please also fix your cookie parameter settings from: define('HTTP_COOKIE_DOMAIN', 'http://www.mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'https://www.mydomain.com'); to: define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com'); See if that helps. Edited April 30, 2014 by Harald Ponce de Leon Quote , osCommerce Link to comment Share on other sites More sharing options...
GetSirius Posted August 15, 2014 Share Posted August 15, 2014 May I suggest that the 2checkout module that comes with osCommerce (2.3.4) be removed and replaced with the module that 2checkout provides on github. I did this and it works perfect. Allows the pop-up 2CO payment that makes it appear to the customer that they do not leave your website. Also used this successfully on earlier 2.3 versions. Instructions on 2Checkout.com: https://www.2checkout.com/shopping-cart/oscommerce/ 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.