Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

osCommerce PayPal IPN Module v1.0 For 2.2MS2


Guest

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?"

 

 

Anyone????

 

 

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):

 

http://xxxxxxxxxxx/catalog/checkout_process.php?

mc_gross=7.37

&invoice=P35

&address_status=confirmed

&item_number1=111177

&payer_id=JR4CV273D4G2W

&tax=0.18

&address_street=xxxxxxxxxxxx

&payment_date=13%3A38%3A24+Jun+11%2C+2008+PDT

&payment_status=Completed

&charset=windows-1252

&mc_tax1=0.18

&address_zip=xxxxx

&mc_shipping=5.00

&mc_handling=0.00

&first_name=bill

&mc_fee=0.51

&address_country_code=US

&address_name=xxx+xxx

&notify_version=2.4

&custom=3

&payer_status=unverified

&[email protected]

&address_country=United+States

&num_cart_items=1

&mc_handling1=0.00

&address_city=xxxxxxxx

&[email protected]

&verify_sign=AoRpHlYBcLf9HzPPYpro3EYpEZnqAxh86W57UV2e7JU2MrRvcK-7hIG7

&mc_shipping1=5.00

&tax1=0.18

&payment_type=instant

&txn_id=7AE93533YK8914900

&last_name=gray

&[email protected]

&item_name1=111177

&address_state=xx

&payment_fee=0.51

&quantity1=1

&receiver_id=QHLYZFU8VRG6E

&txn_type=cart

&mc_currency=USD

&mc_gross_1=7.19

&residence_country=US

&receipt_id=xxxx-xxxx-xxxx-5997

&test_ipn=1

&payment_gross=7.37

&merchant_return_link=Complete+your+Order+Confirmation

&form_charset=UTF-8

 

 

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:

 

http://www.oscommerce.com/forums/index.php?showtopic=139226

 

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.

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