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 which affects a few versions.

To fix this you can install this module with:

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

Still need help? Contact Us Contact Us