Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

osCommerce PayPal IPN Module v1.0 For 2.2MS2


Recommended Posts

Hi! I am now using the module in the title (AKA http://addons.oscommerce.com/info/2679) and am having one issue after another. Obviously I am doing something wrong or missed an installation step. Latest issue, that I have yet to get by, is that when the user clicks the return button from the PayPal sandbox the return is made to the logon page. A logoff has obviously occured. On logging in again the cart is still in tact and the previous order has a status of "Preparing [PayPal IPN]". In other words, the loop is not closed. Does anyone have experience they would like to share with this?


BTW, I implemented the unique number workaround mentioned as I was getting the "payment already made" issue. This latest issue crept in right after I got around that.


So, should I even be using this module? Perhaps I should go back to the out-of-the-box version? I went to this in order to show line item detail in PayPal (web page and email).


Thanks in advance for any and all help!

Edited by wjgray
Link to comment
Share on other sites

Update on this one... it seems that Paypal is calling checkout_process.php (as it should I imagine) when the user presses the "return to merchant" button. The session id (???) is on the URL. However, upon reaching checkout_process it appears the !tep_session_is_registered('customer_id') is returning true (meaning the user is not logged in. This redirects to the login page.


So, now the question has changed to "Why is my session being invalidated on return when using the IPN module described above?"






Thanks in advance!

Link to comment
Share on other sites

update... the entire $_SESSIONS array is null...


$_SESSION = array[5] {

cart => (null)

language => (null)

languages_id => (null)

currency => (null)

navigation => (null)



The URL that PayPal responded to is (personal stuff x'ed out):





















































Any help for anybody?????

Link to comment
Share on other sites

I finally got this issue! Surely others may hit this....


I was able to get by it by forcing all returning parameters to be passed via post... see this:




Do this by hiding a variable called rm with a value of 2 in those passed to PayPal. In order to do this I had to modify paypal_ipn.php. I added the following:


$parameters['rm'] = '2';


just after:


$parameters['cbt'] = CONFIRMATION_BUTTON_TEXT;

$parameters['return'] = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');


Sweet since.


Also, this is obscurely referred to in the Sandbox User Guide.

Edited by wjgray
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.

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