Paypal error message : The payment disallows storing object

On some Magento 2.2 versions (including 2.2.3 - 2.2.5) when PayPal is selected as payment method in combination with a configured Surcharge for PayPal it shows the warning "The payment disallows storing objects":

This is due to the core Magento bug discussed at https://github.com/magento/magento2/issues/11885 which affects a few versions.

To fix this you can install this module https://github.com/CopeX/PaypalFix with:

composer config repositories.copexpaypal vcs https://github.com/CopeX/PaypalFix
composer require copex/module-paypalfix:dev-master
bin/magento module:enable CopeX_PaypalFix
bin/magento setup:upgrade

Still need help? Contact Us Contact Us