Results 1 to 1 of 1
  1. #1
    Join Date
    Apr 2019
    Posts
    338
    Plugin Contributions
    0

    Default Legacy PayPal plug-in mod for zc v1.58A and php 8.1 (paypaldp.php, paypalwpp.php)

    zc 1.58A with php 8.1

    The original paypal files from 1.58A installer will cause some warnings when php version is 8.1. I copied the files from zen cart 2.01 and made some modifications, and they are working without warning now. If you like to try my code, here is my repo.

    https://github.com/njcyx/paypal_legacy_zc

    Some key notes:

    1. convertToLocalTimeZone() function will trigger warnings under zen cart 1.58A. Changed the code back to the previous version.
    2. In the past zc official updates, $order_amount is changed to $order->info['total']. Not sure if it also works under zen cart 1.58A, but I changed it back.
    3. With paypaldp.php (credit card processing), order confirmation email will show auth code as n/a on the top. While in the previous zen cart, auth code is hidden. Updated the code to hide this section.
    4. ipn_main_handler.php has no change (v2.0.0rc). It can be used directly.
    Last edited by njcyx; 6 Jun 2024 at 08:52 PM.

 

 

Similar Threads

  1. v158 v1.58a with php 8.1, PHP Warning and PHP Deprecated
    By njcyx in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 11 Jun 2024, 10:00 PM
  2. v158 paypaldp and PHP 8.1
    By swguy in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 22 Dec 2023, 02:10 PM
  3. v154 PHP Parse error: syntax error, unexpected '[' in paypalwpp.php
    By saplanet in forum General Questions
    Replies: 1
    Last Post: 17 May 2018, 12:26 PM
  4. Replies: 4
    Last Post: 17 Jul 2015, 04:44 AM
  5. [not a bug] paypal.php and ups.php
    By annikki in forum Bug Reports
    Replies: 1
    Last Post: 27 Oct 2006, 10:27 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