How to fix the Paypal Express issue on M2.2.x?

Created by Rosa Truong, Modified on Tue, 12 Jan, 2021 at 2:05 PM by Rosa Truong

Issue:


After installing the module Auto Invoice extension on M2.2.3 getting the error "[ReflectionException] Class Magento\Paypal\Model\Adminhtml\Express does not exist" while commands run.

How to fix this issue?


Solution:


Since the Paypal Express is not used on M2.2.x so the module is not compatible with M2.2.x at this time.

To solve the issue, we have removed the Paypal Express class.

Please follow our guide as below:

+ Delete .gitignore file 

+ Add files:

Helper/AutoInvoice.php

Helper/Data.php

Helper/Payment/Data.php

Model/Config/Source/Allmethods.php

Model/Config/Source/Capture.php

Model/Observer/AutoInvoice.php

Model/Observer/PaypalExpressPlaceSuccessObserver.php.bk

composer.json

etc/acl.xml

etc/adminhtml/system.xml

etc/events.xml

etc/module.xml

registration.php


Please apply the hot-fix package on the site to solve the problem.


If you need any further support, please feel free to contact us.

We'd like to help.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article