Paypal fails after latest update 5.10 self-hosted- Server 500 error

[2024-08-29 20:35:10] production.ERROR: Class “Omnipay\Omnipay” not found {“userId”:6,“exception”:"[object] (Error(code: 0): Class "Omnipay\Omnipay" not found at /var/www/html/app/Paymen>

last part in log

Hi,

It may help to run composer install

not sure what u mean by that… php composer install ??

SSH into the server using the command line and then run composer install in the root folder of the project.

Alternatively you can try copying over the latest release tar.

Command ‘composer’ not found, but can be installed with:
apt install composer

everything works except paypal option… it errors out

The error implies a vendor file is missing, if you copy over the latest tar it will overwrite all of the vendor files.

ok so i have composer file working… did install…, downloaded tar of invoice ninja… checked vender folder… paypal is not listed in there… i see stripe and my stripe works…i see many others…but no paypal…

now in /var/www/html/app/PaymentsDrivers … i see PayPal
latest error: Class "Omnipay\Omnipay" not found at /var/www/html/app/ PaymentDrivers/PayPalExpressPaymentDriver.php:58

the update broke this it was all fine before 5.10.26

I suggest creating a discussion on GitHub

Per a comment from @david on GitHub, PayPal Express has been removed from the latest version and PayPal must be configure via their Rest API. Apparently Express is still listed as an option in the UI, but I suspect it will be removed in a future update.