Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Patched PayPal Express Checkout and IPN module ... for v1.3.7

    Attached is the latest patched code to address reported bugs in the v1.3.7 PayPal Express Checkout module.


    Attachment is current as of Jan 20, 2007 - Updated to handle " marks in product names.

    NOTE: A NEWER patch has been posted . Use the new one instead. These are left here for reference only.



    Feb 8
    NEW patch.

    The following patch SUPERCEDES the patch posted above.

    If you have applied the previous patch, you should still apply this patch over it. See list of changed files below for easy installation if you've already installed the previous patch.

    Fixes:
    - some table structure repairs
    - IPN refunds weren't setting order status properly
    - authcode and transaction-id comments are now "separate" instead of merged with existing order comments
    - protections in place to prevent empty address details from being mistakenly sent to PayPal and throwing errors
    - customer_notified = false is now = 0 instead (corrected syntax)
    - adjustment to prevent "-0.00" values being sent to PayPal mistakenly
    - other smaller tidying

    Changed files since Jan 20 patch:
    - ipn_main_handler.php
    - includes/modules/payment/paypalwpp.php
    - includes/modules/payment/paypal/paypal_curl.php
    - includes/modules/payment/paypal/paypalwpp_admin_notification.php
    The above files can simply replace existing files.

    All the other files in this zip are from the Jan 20 patch, and are included for convenience ... no need to install the Jan 20 patch if you install this one in its entirety.
    Attached Files Attached Files
    .

    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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Patched PayPal Express Checkout module

    UPDATE - FEB 15, 2007
    PayPal made a system change which has caused some confusion for some shops, whereby an invalid (blank) country code was detected and submitted back to PayPal, but rejected.

    The symptoms and specific fix are documented in this thread:
    http://www.zen-cart.com/forum/showthread.php?t=58364

    The updated files are included here. The only "actual" update since the Feb 8 patch is the /includes/modules/payment/paypalwpp.php file.
    Attached Files Attached Files
    .

    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.

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

    Default Re: Patched PayPal Express Checkout module

    Update Feb 19, 2007

    This patch includes three updates:
    - allows alert emails to be sent instead of full debug logs for errors that occur when attempting to start Express Checkout
    - a small fix to deal with occasional ship-to "name" problems
    - LOCALECODE support now defaults to store's country code first. If that's not valid, it then attempts to set it based on selected language. Finally, if none of those work, US is selected.

    Changed files (since Feb 15 update above):
    /includes/languages/english/modules/payment/paypalwpp.php
    /includes/modules/payment/paypalwpp.php
    /includes/modules/payment/paypal/paypal_curl.php

    Other files in this zip are the cumulative updates from other patches in this same discussion thread. As such, there is no need to apply previous patches listed above if applying this one.


    NOTE: To benefit from the new "Alert Only" debug support, you'll need to write down your current PayPal settings, then remove the module, and then re-install it. Remember that your PayPal API signature information is confidential. You may need to re-copy+paste it from your PayPal account profile. Be sure not to include trailing spaces when entering this information.
    Attached Files Attached Files
    .

    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
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Patched PayPal Express Checkout module

    Patch Issued Feb 20, 2007

    A MySQL 5 compatibility problem was discovered. This patch contains the fix.

    Also discovered a small problem introduced in the Feb 19 patch with the paypal_curl.php file. It should be replaced with the one in this patch.

    The only files touched since the Feb 19 patch are:
    /includes/modules/payment/paypalwpp.php
    /includes/modules/payment/paypal/paypal_curl.php



    Repeating the note from the Feb 19 patch. If you haven't already done this, be sure to do it after installing this patch: NOTE: To benefit from the new "Alert Only" debug support, you'll need to write down your current PayPal settings, then remove the module, and then re-install it. Remember that your PayPal API signature information is confidential. You may need to re-copy+paste it from your PayPal account profile. Be sure not to include trailing spaces when entering this information.
    Attached Files Attached Files
    .

    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.

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

    Default Re: Patched PayPal Express Checkout module

    Patch Issued Feb 28 2007

    This patch attempts to fix non-American customer address submission issues which were resulting in 81108-ShipToState errors.
    Also improves upon the Alerts Only debug option in some cases.
    Also now handles & and = symbols more effectively so as to prevent PayPal from croaking if they are found in address or product-name details.

    If you have already applied the Feb 19 patch, then there is no need to "remove" and "install" the module in the Admin to activate this patch. (ie: if you have the "Alerts Only" option available under Debug Settings, then you don't need to remove and re-install. Just update the files: )

    Changed files since Feb 20 patch include:
    - /includes/modules/payment/paypal/paypal_functions.php
    - /includes/modules/payment/paypal/paypal_curl.php
    - /includes/modules/payment/paypal.wpp

    (Yes, for those of you wondering, this patch is cumulative of all patches in this thread. You do not need to install each one individually ... just the most recent. That includes remove+re-install of the module in the Admin, as indicated).
    Attached Files Attached Files
    .

    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
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Patched PayPal Express Checkout module

    Patch issued March 2 2007

    This patch includes fixes to handle blank state fields more intelligently. An error was identified which, while intended to prevent submission of blank data, was in fact not doing anything at all. This has been fixed.

    Updated files since 02/28 patch release are:
    - /includes/modules/payment/paypal/paypal_curl.php
    - /includes/modules/payment/paypal.wpp

    (Yes, for those of you wondering, this patch is cumulative of all patches in this thread. You do not need to install each one individually ... just the most recent. That includes remove+re-install of the module in the Admin, as indicated).
    Attached Files Attached Files
    .

    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.

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

    Default Re: Patched PayPal Express Checkout and IPN module

    Patch Issued June 16, 2007

    EDIT:
    Apologies - The June 16 patch had an error when the PayPal IPN module was converted into the patch zip.
    It has been fixed and replaced with the June 17 patch, in the post below.

    If you installed the June 16 zip (now removed), simply replace the includes/modules/payment/paypal.php file from the June 17 patch.

    If you never used the June 16 patch, please follow full installation instructions in the June 17 post, below.
    .

    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.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Patched PayPal Express Checkout and IPN module

    Patch Issued June 17, 2007

    This fix includes:
    • PDT improvements to do better cleanup of temp data
    • IPN vs SSL issues tweaked
    • In Express Checkout, more address format anomalies adjusted.


    NOTES:
    • If you are using the IPN module, you WILL need to remove and re-install the PayPal IPN module (after recording your settings) in order to benefit from the enclosed fixes.


    Files affected in this patch since the May 10 patch are:
    /includes/modules/payment/paypal.php
    /includes/modules/payment/paypalwpp.php
    /includes/modules/payment/paypal/paypal_functions.php


    (Yes, this patch is cumulative of all patches in this thread. You do not need to install each one individually ... just the most recent. Be sure to remove+re-install the module in the Admin, as indicated).


    See this post for patch-installation instructions:
    http://www.zen-cart.com/forum/showpo...905#post365905


    NOTE: This June 17 Patch is ALREADY INCLUDED in the v1.3.7.1 release of Zen Cart. If you're not already using v1.3.7.1 or higher, it would be wise to schedule an upgrade.
    Attached Files Attached Files
    .

    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.

 

 

Similar Threads

  1. Paypal IPN and Express Checkout problems
    By timprotech in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 17 Mar 2011, 10:22 PM
  2. what is better payment module...Paypal IPN or Express Checkout.??
    By lastpirate007 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 18 Jan 2008, 04:45 AM
  3. Paypal IPN and Express Checkout
    By vegascoug in forum PayPal Express Checkout support
    Replies: 47
    Last Post: 9 Nov 2007, 06:21 AM
  4. PayPal Express Checkout module now recommended over PayPal IPN?
    By xscd in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 30 May 2007, 05:34 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