Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Greetings!

 

My name is Mike and I have been trying to get the final part of the PayPal IPN contribution working. I have done lots of research so far and have come up with a few answers, but none of them fit my dilemma exactly. Here is the story so far:

 

I installed the regular PayPal payment module but didn't like that if a customer cancels the transaction or doesn't return to the site, it doesn't work very well. I decided to with IPN (Instant Payment Notification) to handle my transactions instead.

 

I went to the contributions page and found "PayPal_Shopping_Cart_IPN" contribution found at "http://www.oscommerce.com/community/contributions,1753". I wasn't sure if it was the best contribution to use or not, but I decided to try it anyways.

 

As it turned out, it worked great... well, almost. The contribution was easy to install and straight-forward (well done to the author). I tested it in the PayPal Sandbox testing environment and it did absolutely everything (correct payments, accurate itemized invoices, all the emails, etc.) except that the IPN didn't quite make it back to my server, thus not updating the order status, not transferring purchased items and not giving me the notification in the admin tool.

 

I got on the horn with 2nd level Merchant Services techs at PayPal and we did some testing. By this time we had put through about 8 orders into the Sandbox environment. Everything was working great except that there wasn't any IPNs coming back. A span of about 6 hours passed between the time of the first Sandbox order and the phone call. Just before the tech did any real testing, I got an IPN back from my first order (6 hours late). Just one. The tech said that the Sandbox environment could be causing the delay and that I should try it out live. I concurred.

 

After dinner, I checked and no other IPNs had come in. I switched everything over to the live environment. I ran some orders through and, to my dismay, received the same results: no IPNs coming back, but everything else was working fine. Why, oh why is the IPN not hitting my server.

 

The next day I called Merchant Services and we found out that the problem was caused by a firewall on the GoDaddy servers (the company that I am hosting my site through). We did some research and came up with lots of results... but they are directed at a different contribution... or so it seems. Here is what I found:

 

 

Brian_C writes:

 

"Anyone hosting on godaddy.com and using this module will need to make the following change to /ext/modules/payment/paypal_ipn/ipn.php.

 

Find (at or around line 71):

 

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

 

Add immediately after:

 

curl_setopt($ch, CURLOPT_PROXY, "HTTP://64.202.165.130:3128");

 

This is needed for communicating with PayPal."

 

 

Many people concur with this finding and even PayPal has links to stuff like that as they are aware of the problem.

 

The only problem is that... I don't have a directory that starts with "/ext" at all or a "/paypal_ipn" directory either. Since many people have come up with a solution like Brian_C, either I'm using a different contribution, or I'm looking in the wrong place for that folder. I looked and I can't even find any curl files in there (unless they are deep in the classes folders).

 

If you know anything about this, please lend a hand.

 

Thanks so much for reading this far,

 

Frustrated Canadian,

 

Mike

  • 2 weeks later...
Posted (edited)

file location:

catalog\includes\modules\payment\paypal\classes\Client\Connector.class.php

 

at line 209

Edited by jugin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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