Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal IPN redirect issue


edkiefer

Recommended Posts

First off I'm a relative novice when it comes to OSC and pretty dumb when it comes to IPN so I welcom any one to jump in here if I am giving bad advice.

 

The URL should be http://yoursite.com/catalog/checkout_process.php (note that the ?osCsid=351adsf321asdf321asdf is a session identifyer and something that should never be hard coded as it changes with each session)

 

I think you could jam "http://yoursite.com/catalog/checkout_process.php" into the paypal redirect feature and see sucess but it sounds like that would be circumventing the proper process and you would loose out on some data.

 

Did you enable PayPal IPN in your paypal account under Profile/Selling Preferences/Instant Payment Notification Preferences? or did you enable auto return under Profile/Selling Preferences/Website Payment Preferences? I think you will need to give PayPal your website URL (like "http://yoursite.com/catalog/checkout_process.php") in one or the other place so it knows where to go after a sucessful payment has been received.

 

It is possible that you need to update a config file to go allong with IPN to pass your URL to PayPal... can you post a link to the IPN you downloaded and installed? It does NOT look to me like you should edit the following file. /catalog/includes/languages/english/modules/payment/paypal_ipn.php Is there another paypal_ipn.php you were referring to?

Link to comment
Share on other sites

First off I'm a relative novice when it comes to OSC and pretty dumb when it comes to IPN so I welcom any one to jump in here if I am giving bad advice.

 

The URL should be http://yoursite.com/catalog/checkout_process.php (note that the ?osCsid=351adsf321asdf321asdf is a session identifyer and something that should never be hard coded as it changes with each session)

 

I think you could jam "http://yoursite.com/catalog/checkout_process.php"?'>http://yoursite.com/catalog/checkout_process.php"? into the paypal redirect feature and see sucess but it sounds like that would be circumventing the proper process and you would loose out on some data.

 

Did you enable PayPal IPN in your paypal account under Profile/Selling Preferences/Instant Payment Notification Preferences?? or did you enable auto return under Profile/Selling Preferences/Website Payment Preferences?? I think you will need to give PayPal your website URL (like "http://yoursite.com/catalog/checkout_process.php") in one or the other place so it knows where to go after a sucessful payment has been received.

 

It is possible that you need to update a config file to go allong with IPN to pass your URL to PayPal... can you post a link to the IPN you downloaded and installed?? It does NOT look to me like you should edit the following file. /catalog/includes/languages/english/modules/payment/paypal_ipn.php Is there another paypal_ipn.php you were referring to?

 

Did you enable PayPal IPN in your paypal account under Profile/Selling Preferences/Instant Payment Notification Preferences? or did you enable auto return under Profile/Selling Preferences/Website Payment Preferences? I think you will need to give PayPal your website URL (like "http://yoursite.com/catalog/checkout_process.php") in one or the other place so it knows where to go after a sucessful payment has been received.

 

Yes I have tried a number of different things.

1. Tried enabling PayPal IPN with this IPN URL: http://cpanel1.mapledata.net/~cssplate/cat...out_process.php

2. Tried enabling auto return with this URL: http://cpanel1.mapledata.net/~cssplate/cat...out_process.php

3. Tried enabling both at the same time and separatly.

I get the same results with all. This URL is in my browser: http://checkout_process.php/?osCsid=38ad43...bb47d669f25ebe7

Edited by edkiefer
Link to comment
Share on other sites

I did all that you did (without knowing - and then reset it all)

 

Now I get this far:

http://mydomain.com/catalog/checkout_proce...urn+To+Merchant

 

 

which gives an error

Cannot redeclare class order_total in

/mysiteroot/catalog/includes/classes/order_total.php line 14

 

WE ARE GETTING FURTHER

 

Here is my configure.php

 

define('HTTP_SERVER', 'http://thermalband.com/kewler/catalog'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://ssl.perfora.net/mydomain.com/kewler/catalog'); // eg, https://localhost - should not be empty for productive servers

// define('HTTPS_SERVER', '');

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

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_PRODUCT_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_MODULES', DIR_WS_MODULES . 'modules/');

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

 

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

define('DIR_FS_CATALOG', '/homepages/40/d120432229/htdocs/dsc0372343751/kewler/catalog/');

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

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

 

// define our database connection

define('DB_SERVER', 'db199.perfora.net'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'ssssssssssssss');

define('DB_SERVER_PASSWORD', 'sssss');

define('DB_DATABASE', 'sssssssss');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

 

Only problem is that I can't login to my account when SSL is enabled, so it has to be set to false while I research what is wrong - or maybe its above

 

-----------------HOPE this helps!-------------------Kevin

 

 

Did you enable PayPal IPN in your paypal account under Profile/Selling Preferences/Instant Payment Notification Preferences?? or did you enable auto return under Profile/Selling Preferences/Website Payment Preferences?? I think you will need to give PayPal your website URL (like "http://yoursite.com/catalog/checkout_process.php") in one or the other place so it knows where to go after a sucessful payment has been received.

 

Yes I have tried a number of different things.

1. Tried enabling PayPal IPN with this IPN URL: http://cpanel1.mapledata.net/~cssplate/cat...out_process.php

2. Tried enabling auto return with this URL: http://cpanel1.mapledata.net/~cssplate/cat...out_process.php

3. Tried enabling both at the same time and separatly.

I get the same results with all. This URL is in my browser: http://checkout_process.php/?osCsid=38ad43...bb47d669f25ebe7

Edited by kewler
Link to comment
Share on other sites

Note that I would login under ssl=false and then switch it to true and refresh the screen and all is good. I process an order through the sandbox and return with the "Return to Merchant" button to the

 

http://mydomain.com/catalog/checkout_proce...urn+To+Merchant

 

screen with the error

 

Cannot redeclare class order_total in

/mysiteroot/catalog/includes/classes/order_total.php line 14

 

I did all that you did (without knowing - and then reset it all)

 

Now I get this far:

http://mydomain.com/catalog/checkout_proce...urn+To+Merchant

which gives an error

Cannot redeclare class order_total in

/mysiteroot/catalog/includes/classes/order_total.php line 14

 

WE ARE GETTING FURTHER

 

Here is my configure.php

 

  define('HTTP_SERVER', 'http://thermalband.com/kewler/catalog'); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', 'https://ssl.perfora.net/mydomain.com/kewler/catalog'); // eg, https://localhost - should not be empty for productive servers

//  define('HTTPS_SERVER', ''); 

  define('ENABLE_SSL', true); // secure webserver for checkout procedure?

  define('HTTP_COOKIE_DOMAIN', 'mydomain.com');

  define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

  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_PRODUCT_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_MODULES', DIR_WS_MODULES . 'modules/');

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

 

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

  define('DIR_FS_CATALOG', '/homepages/40/d120432229/htdocs/dsc0372343751/kewler/catalog/');

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

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

 

// define our database connection

  define('DB_SERVER', 'db199.perfora.net'); // eg, localhost - should not be empty for productive servers

  define('DB_SERVER_USERNAME', 'ssssssssssssss');

  define('DB_SERVER_PASSWORD', 'sssss');

  define('DB_DATABASE', 'sssssssss');

  define('USE_PCONNECT', 'false'); // use persistent connections?

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Only problem is that I can't login to my account when SSL is enabled, so it has to be set to false while I research what is wrong - or maybe its above

 

-----------------HOPE this helps!-------------------Kevin

Link to comment
Share on other sites

I did all of the manual edits using the payal 3.5 contribution

 

There are 2 different series - on from the developers and a better one - as I did not get anything but flawless opertion with it.

 

-Kevin

 

I did all that you did (without knowing - and then reset it all)

 

Now I get this far:

http://mydomain.com/catalog/checkout_proce...urn+To+Merchant

which gives an error

Cannot redeclare class order_total in

/mysiteroot/catalog/includes/classes/order_total.php line 14

 

WE ARE GETTING FURTHER

 

Here is my configure.php

 

  define('HTTP_SERVER', 'http://thermalband.com/kewler/catalog'); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', 'https://ssl.perfora.net/mydomain.com/kewler/catalog'); // eg, https://localhost - should not be empty for productive servers

//  define('HTTPS_SERVER', ''); 

  define('ENABLE_SSL', true); // secure webserver for checkout procedure?

  define('HTTP_COOKIE_DOMAIN', 'mydomain.com');

  define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

  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_PRODUCT_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_MODULES', DIR_WS_MODULES . 'modules/');

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

 

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

  define('DIR_FS_CATALOG', '/homepages/40/d120432229/htdocs/dsc0372343751/kewler/catalog/');

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

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

 

// define our database connection

  define('DB_SERVER', 'db199.perfora.net'); // eg, localhost - should not be empty for productive servers

  define('DB_SERVER_USERNAME', 'ssssssssssssss');

  define('DB_SERVER_PASSWORD', 'sssss');

  define('DB_DATABASE', 'sssssssss');

  define('USE_PCONNECT', 'false'); // use persistent connections?

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Only problem is that I can't login to my account when SSL is enabled, so it has to be set to false while I research what is wrong - or maybe its above

 

-----------------HOPE this helps!-------------------Kevin

Link to comment
Share on other sites

  • 2 weeks later...

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...