Page 45 of 46 FirstFirst ... 3543444546 LastLast
Results 441 to 450 of 456
  1. #441
    Join Date
    May 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    I am receiving errors regularly for paypal restful (encapsualted version). Your help to resolve them would be very much appreciated. I am using :
    ZC 2.2.2 (fresh install)
    Bootstrap 3.7.10 template
    PHP 8.2.31
    MySQL 10.3.39-MariaDB
    Paypal Express Checkout is set to 'retired' although I had the same problems when this was not installed
    Various other plugins installed inc Ceon URI mapping and Royal Mail
    A typical example of the errors:-

    Code:
    [02-Jun-2026 08:20:43 UTC] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
    #0 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/ipn_main_handler.php(352): zen_debug_error_handler()
    --> PHP Warning: Undefined array key "payment" in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/ipn_main_handler.php on line 352.
    
    [02-Jun-2026 08:20:43 UTC] PHP Fatal error:  Uncaught Error: Class "PayPalRestful\Common\ErrorInfo" not found in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/zc_plugins/PayPalRestful/v2.0.0/catalog/includes/modules/payment/paypalr.php:214
    Stack trace:
    #0 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/includes/classes/payment.php(121): paypalr->__construct()
    #1 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/ipn_main_handler.php(352): payment->__construct()
    #2 {main}
      thrown in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/zc_plugins/PayPalRestful/v2.0.0/catalog/includes/modules/payment/paypalr.php on line 214
    
    [02-Jun-2026 08:20:43 UTC] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140
    --> PHP Fatal error: Uncaught Error: Class "PayPalRestful\Common\ErrorInfo" not found in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/zc_plugins/PayPalRestful/v2.0.0/catalog/includes/modules/payment/paypalr.php:214
    Stack trace:
    #0 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/includes/classes/payment.php(121): paypalr->__construct()
    #1 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/ipn_main_handler.php(352): payment->__construct()
    #2 {main}
      thrown in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/zc_plugins/PayPalRestful/v2.0.0/catalog/includes/modules/payment/paypalr.php on line 214.
    
    [02-Jun-2026 08:20:43 UTC] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140
    --> PHP Fatal error: Uncaught Error: Class "PayPalRestful\Common\ErrorInfo" not found in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/zc_plugins/PayPalRestful/v2.0.0/catalog/includes/modules/payment/paypalr.php:214
    Stack trace:
    #0 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/includes/classes/payment.php(121): paypalr->__construct()
    #1 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/ipn_main_handler.php(352): payment->__construct()
    #2 {main}
      thrown in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/zc_plugins/PayPalRestful/v2.0.0/catalog/includes/modules/payment/paypalr.php on line 214.

  2. #442
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    @cheddars, were you doing any cleanup on the older PayPal transactions in the admin at the time of the errors? The issue lies with the paypalwpp/paypaldp's ipn_main_handler.php and I'm just trying to figure out how its being called to provide the "right" correction.

  3. #443
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module


  4. #444
    Join Date
    May 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    @lat9 thank you for responding so quickly.
    I have not made any changes to PHP files although I have copied over database tables from a previous ZC 156 system (paypal and paypal_payment_status_history and orders).
    The errors are generated on a regular basis (presumably during normal customer operations). I have not made any admin changes recently.

  5. #445
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: PayPal RESTful API Payment Module

    @cheddars,
    Do you have the ExpressCheckout or DirectPayment modules "enabled" (or even set to "retired") instead of clicking Uninstall/Remove to completely deactivate them?
    If you've "recently" (last 60 days) done transactions in the older PayPal modules and want to be able to inspect PayPal details via your store, you'd need it left set to "Retired".
    But if none of your payment/order history with those modules is within the last 60 days, you wouldn't need to keep the old module enabled/retired at all, and can click Remove/Uninstall. And then the ipn_main_handler shouldn't fire either.

    So, I'm just inquiring the state of your historical orders: will you need to review PayPal details on "recent" orders via your store's Admin? If not, you can remove those old PayPal modules. You can still explore actual transaction details and even do refunds on them directly from your PayPal account even if the old module is removed from your store.
    .

    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. #446
    Join Date
    May 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    Thank you @DrByte
    Currently I have Paypal Express checkout set to 'retired' and I do have transactions within the last month. However there are not too many of them and so removing the module should not be a problem if I need to make a refund.
    I shall uninstall Paypal Express and see how it goes

  7. #447
    Join Date
    May 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    After uninstalling Paypal Express I still get the same error message logged

  8. #448
    Join Date
    May 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: PayPal RESTful API Payment Module

    Quote Originally Posted by cheddars View Post
    After uninstalling Paypal Express I still get the same error message logged
    I should add, this was after applying the temporary fix suggested by @lat9
    I have now captured 2 payments and received the following warnings :-

    Code:
    [03-Jun-2026 09:25:57 UTC] Request URI: /ipn_main_handler.php, IP address: 173.0.81.140, Language id 1
    #0 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/includes/modules/payment/paypal/paypal_functions.php(402): zen_debug_error_handler()
    #1 /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/ipn_main_handler.php(496): ipn_create_order_update_array()
    --> PHP Warning: Undefined array key "pending_reason" in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/includes/modules/payment/paypal/paypal_functions.php on line 402.
    Last edited by cheddars; 3 Jun 2026 at 10:45 AM.

  9. #449
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    v1.3.2 of the non-encapsulated version of the PayPal RESTful payment module is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2382

    This release contains changes associated with these GitHub issues:

    #114: Sync with changes from the encapsulated version of the payment module.
    #116: zcDate not loaded during webhook actions
    #118: Wrong amount shown for PayLater messaging
    #119: CC obfuscation modified for BIN lookups

  10. #450
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,913
    Plugin Contributions
    96

    Default Re: PayPal RESTful API Payment Module

    v2.1.0 of the encapsulated version of the PayPal RESTful payment module is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2434

    This release contains changes associated with these GitHub issues: https://github.com/zencart/paypalr/i...stone%3Av2.1.0
    Highlights:

    • Adds support for zc300's zen_config function (with polyfill for previous Zen Cart versions)
    • Corrects incorrect amounts for PayLater messaging on product pages.
    • Modifies the credit-card obfuscation to account for BIN lookups
    • Correction of various PHP logs and "hardening" of external input entries.

 

 
Page 45 of 46 FirstFirst ... 3543444546 LastLast

Similar Threads

  1. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 187
    Last Post: 20 Apr 2026, 09:15 PM
  2. IPower & FirstData API Payment Module
    By spence in forum Addon Payment Modules
    Replies: 6
    Last Post: 7 Jul 2011, 06:33 PM

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