Zen Cart Logo
Forums / Upgrading to 1.5.x / PayPal Express Checkout Issues

PayPal Express Checkout Issues

Views: 1,677

Results 1 to 4 of 4
30 Nov 2022, 5:16 AM
#1
celextel108 avatar

celextel108

New Zenner

Join Date:
Sep 2022
Location:
Chennai
Posts:
37
Plugin Contributions:
0

PayPal Express Checkout Issues

Dear Friends,

We are currently using Zen Cart 1.5.8 under PHP 8.1.9 Version at www.celextel.com.

1

We are not getting Payment Emails from PayPal when a Payment is made through PayPal Express Checkout Payment Module with Payment Action as Auth Only.

PayPal support has informed us that there is no issue at their end.

We get Payment Email from PayPal when the payment is made through a PayPal Invoice Link. We also used to get Emails when we were using osCommerce based Store with their PayPal Express Checkout Payment Module.

2

PayPal Express Checkout seems to be not IPN enabled as payment details in the Orders do not get updated after we Capture an Amount.

3

We updated paypalwpp.php File with the latest Version at the following URL:
https://github.com/zencart/zencart/tree/v158/includes/modules/payment

We have also added the following New File:
/includes/modules/payment/paypal/paypal_currency_check.php

New paypalwpp.php File is showing the following Error Log at Checkout Payment page while testing:
#4 /home/XXXX/public_html/index.php(35): require('/home/celextel/...')
--> PHP Warning: Undefined variable $order_amount in /home/XXXX/public_html/includes/modules/payment/paypalwpp.php on line 286.

We had to change the following New Code:

    
// module cannot be used for purchase > $10,000 USD equiv
    require_once DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/paypal_currency_check.php';
    if (paypalUSDCheck($order->info['total']) === false) {
      $this->enabled = false;
      $this->zcLog('update_status', 'Module disabled because purchase price (' . $order_amount . ') exceeds PayPal-imposed maximum limit of 10,000 USD or equivalent.');
    }

to the following Old Code:

    
    // module cannot be used for purchase > $10,000 USD equiv
    $order_amount = $this->calc_order_amount($order->info['total'], 'USD', false);
    if ($order_amount > 10000) {
      $this->enabled = false;
      $this->zcLog('update_status', 'Module disabled because purchase price (' . $order_amount . ') exceeds PayPal-imposed maximum limit of 10,000 USD or equivalent.');
    }

Please do the needful if there are solutions to these issues.

Thanks,

Lakshmanan

30 Nov 2022, 11:29 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,691
Plugin Contributions:
56

Re: PayPal Express Checkout Issues

#3 is a bug; PR here: https://github.com/zencart/zencart/pull/5435

but bear in mind that you only hit this if you submit an order for $10K USD or more.

I don't have any clients using Auth Only so I can't help you on the other issues.

1 Dec 2022, 3:09 AM
#3
celextel108 avatar

celextel108

New Zenner

Join Date:
Sep 2022
Location:
Chennai
Posts:
37
Plugin Contributions:
0

Re: PayPal Express Checkout Issues

swguy:

#3 is a bug; PR here: https://github.com/zencart/zencart/pull/5435

but bear in mind that you only hit this if you submit an order for $10K USD or more.

I don't have any clients using Auth Only so I can't help you on the other issues.

Okay, thanks.

1 Dec 2022, 3:32 AM
#4
celextel108 avatar

celextel108

New Zenner

Join Date:
Sep 2022
Location:
Chennai
Posts:
37
Plugin Contributions:
0

Re: PayPal Express Checkout Issues

swguy:

#3 is a bug; PR here: https://github.com/zencart/zencart/pull/5435
but bear in mind that you only hit this if you submit an order for $10K USD or more.

The following New Code is also showing a Blank checkout_payment page for a Total Order Value of US$203.53:

    // module cannot be used for purchase > $10,000 USD equiv
    require_once DIR_FS_CATALOG . DIR_WS_MODULES . 'payment/paypal/paypal_currency_check.php';
    if (paypalUSDCheck($order->info['total']) === false) {
      $this->enabled = false;
      $this->zcLog('update_status', 'Module disabled because purchase price (' . $order->info['total']. ') exceeds PayPal-imposed maximum limit of 10,000 USD or equivalent.');
    }

Error Log is as follows:

[01-Dec-2022 08:57:08 Asia/Kolkata] PHP Fatal error: Uncaught Error: Attempt to assign property "enabled" on null in /home/XXXX/public_html/includes/modules/pages/checkout_payment/header_php.php:120
Stack trace:
#0 /home/XXXX/public_html/index.php(35): require()
#1 {main}
thrown in /home/XXXX/public_html/includes/modules/pages/checkout_payment/header_php.php on line 120

Please do the needful.

Thanks,

Lakshmanan