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.