-
paypaldp and PHP 8.1
Is anyone using PayPal Pro with PHP 8.1+? I'm getting a boatload of warnings about undefined array keys.
Code:
[11-Dec-2023 04:46:41 America/Los_Angeles] Request URI: /store/index.php?main_page=checkout_process, IP address: XXXXXXXXXXXXXX Language id 1
#0 /home/xxx/public_html/store/includes/modules/payment/paypaldp.php(1057): zen_debug_error_handler()
#1 /home/xxx/public_html/store/includes/classes/payment.php(297): paypaldp->after_process()
#2 /home/xxx/public_html/store/includes/modules/pages/checkout_process/header_php.php(16): payment->after_process()
#3 /home/xxx/public_html/store/index.php(35): require('/home/xxx/...')
--> PHP Warning: Undefined array key "paypal_ec_payer_info" in /home/xxx/public_html/store/includes/modules/payment/paypaldp.php on line 1057.
lines 1046-1060.
-
Re: paypaldp and PHP 8.1
I'm using paypalwpp (PayPal Express Checkout) the uk with php 8.2.13 no issues. Not pro. I thought pro was being phased out?
-
Re: paypaldp and PHP 8.1
We were getting a ton of that and switched to square since it appeared that the paypal modules were no longer being developed. Even on express we still get
PHP Warning: Undefined variable $address_book_id in /includes/modules/payment/paypalwpp.php on line 2196.
-
Re: paypaldp and PHP 8.1
The problem with payment modules is that they're a huge pain for developers to test, and there are lots of data-dependent potential problems that won't be seen until things are in heavy use. Most storeowners use Express rather than Pro, so it has had more attention and has less issues.
-
Re: paypaldp and PHP 8.1
Oh, i totaly get it! I tried looking at the code to see if i could help out and pretty quickly noped out of that idea. Square is saving us money on processing fees anyway.