Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal not returning to site


treblesix

Recommended Posts

Hi - I am looking for help with an osCommerce site I have taken over for a friend. I am unfamiliar with oscommerce and the owner of the site wants to use PayPal.

 

I have set everything up but PayPal does not return to the site. PayPal tries to return to https://www.paypalobjects.com/uk/cgi-bin/checkout_success.php instead of http://www.mysite.co.uk/checkout_success.php. The return address is set correctly with PayPal.

 

Have searched the forums but with no success. I suspect I may have a problem with configure .php but cannot see where.

 

Am using osCommerce Online Merchant v2.2 RC2a with PayPal Standard module (without SSL).

 

Any suggestions would be appreciated

 

Configure.php is set as follows

 

define('HTTP_SERVER', 'http://www.mysite.co.uk');

define('HTTPS_SERVER', 'http://www.mysite.co.uk');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.mysite.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'mysite.co.uk');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/xxxxxx/xxx/xxxx/htdocs/mysite/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'xxxx');

define('DB_SERVER_USERNAME', 'xxxx');

define('DB_SERVER_PASSWORD', xxxx');

define('DB_DATABASE', 'xxxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

Link to comment
Share on other sites

Upon further investigation I find that checkout_confirmation.php is passing the following parameters to PayPal:

 

<input type="hidden" value="localhost../../ext/modules/payment/paypal/standard_ipn.php" name="notify_url">

<input type="hidden" value="localhost../../checkout_process.php" name="return">

<input type="hidden" value="localhost../../checkout_payment.php" name="cancel_return">

 

I believe these come from paypal_standard.php via html_output.php via admin/includes/configure.php - I just can't see why value ="localost...... ???

 

Any help appreciated as osCommerce is not my usual bag unsure.png

Link to comment
Share on other sites

Just so you have all the details my admin/includes/configure.php looks like this

 

define('HTTP_SERVER', 'http://www.mysite.co.uk');

define('HTTP_CATALOG_SERVER', 'http://www.mysite.co.uk');

define('HTTPS_CATALOG_SERVER', 'http://www.mysite.co.uk');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/xxxx/xx/xxxx/htdocs/mysite/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', '/xxxx/xx/xxxx/htdocs/mysite/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/xxxx/xx/xxxx/htdocs/mysite/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

define('DB_SERVER', 'xxxx');

define('DB_SERVER_USERNAME', 'xxxx');

define('DB_SERVER_PASSWORD', 'xxxx');

define('DB_DATABASE', 'xxxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...