Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Does ZC 1.3.8 PayPal IPN really require allow_url_fopen?

    The Zen Cart v1.3.8 PayPal IPN payment module (and the ZC 1.3.7 version as well I believe) say that they require allow_url_fopen to be enabled.

    Thing is, I have a client with a ZC 1.3.7 site that would like an upgrade to ZC 1.3.8. The site is currently using PayPal IPN and NoChex without problem. The phpinfo shows allow_url_fopen to be off (both master and local). I have run the ipncheck.php from the ZC 1.3.8 extras directory and that shows...
    IPNCHECK.PHP - Version 1.0

    IPN TESTING - POSTING to PayPal via: ssl://www.paypal.com:443

    IPN TESTING - Confirmation/Validation response: RESPONSE RECEIVED - Communications OKAY

    Script finished.
    Now that leads me to believe that PayPal IPN on ZC 1.3.8 would work fine if I went ahead with the upgrade to ZC 1.3.8. But the host has allow_url_fopen disabled and the payment mod information says it needs to be enabled.

    So I've been through the ZC 1.3.8 PayPal IPN code and I cannot find anywhere that would require allow_url_fopen to be enabled. What am I missing? I can see that it uses fsockopen() to the paypal site but as far as I know fsockopen() is not affected by allow_url_fopen and I cannot find any official documentation to say it is.

    Can whoever did the paypal ipn module (Chris?) tell me why allow_url_fopen needs to be enabled?

    Many thanks,
    Christian.
    Last edited by CJPinder; 5 Feb 2008 at 09:30 AM.

  2. #2
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Does ZC 1.3.8 PayPal IPN really require allow_url_fopen?

    I've had a close look at each of the fopen() statements used in the PayPal IPN module. It looks as though the only place that uses fopen() to a URL is ipn_simulate_ipn_handler(). So as far as I can tell, using PayPal IPN in Test mode requires allow_url_fopen to be ON but to use PayPal IPN for live transactions the value of allow_url_fopen does not matter (can be ON or OFF).

    Can someone in the Dev Team confirm this for me?

    Many thanks,
    Christian.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Does ZC 1.3.8 PayPal IPN really require allow_url_fopen?

    Code:
    fsockopen($ssl . $proxy['host'], $proxy['port'], $errnum, $errstr, 30)
    If you've got a setting on your server that blocks fsockopen() from connecting to an outside URL, you'll have problems.
    If you have no blocks, then it should work okay.


    And, this is *not* new to 1.3.8 ... the use of fsockopen to do postbacks to PayPal to validate transaction details has been around since PayPal IPN support was added to Zen Cart in v1.2.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Does ZC 1.3.8 PayPal IPN really require allow_url_fopen?

    Quote Originally Posted by DrByte View Post
    Code:
    fsockopen($ssl . $proxy['host'], $proxy['port'], $errnum, $errstr, 30)
    If you've got a setting on your server that blocks fsockopen() from connecting to an outside URL, you'll have problems.
    If you have no blocks, then it should work okay.
    Thanks Chris. This doesn't really answer the question though. fsockopen() is not affected by the allow_url_fopen setting. It can be blocked separately but not by allow_url_fopen. So what I'm trying to understand is why the admin information says that having allow_url_fopen enabled is a requirement. Do you know why that was stated as a requirement?

    Many thanks,
    Christian.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Does ZC 1.3.8 PayPal IPN really require allow_url_fopen?

    Quote Originally Posted by CJPinder View Post
    Do you know why that was stated as a requirement?
    I believe that was a result of troubleshooting outcomes from working with people on the forum whose host had allow_url_fopen disabled. Once enabling it, the IPN transactions worked normally.
    It's informational, and not related specifically to any coding changes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Does ZC 1.3.8 PayPal IPN really require allow_url_fopen?

    Cool. Thanks for taking the time to help Chris. Much appreciated.

    Regards,
    Christian.

 

 

Similar Threads

  1. PayPal SSL Certificate Upgrade - does this require any changes in Zen-Cart?
    By Danielle in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 16 Jul 2013, 07:57 PM
  2. PayPal WPPro: does it require a PayPal account when using Zencart?
    By SunAndStormdotcom in forum PayPal Website Payments Pro support
    Replies: 9
    Last Post: 3 May 2010, 03:35 AM
  3. Does Zen Cart & Paypal setup require a unique SSL certificate?
    By razzzor in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 24 Jun 2008, 03:28 PM
  4. PayPal IPN Does Not Work!
    By naitsirhc26 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 13 Feb 2007, 04:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR