Skip to content

Instantly share code, notes, and snippets.

@ProxiBlue
Last active July 28, 2021 03:21
Show Gist options
  • Save ProxiBlue/0106c7fa0f2fd24b613f0e61c0ac7c90 to your computer and use it in GitHub Desktop.
Save ProxiBlue/0106c7fa0f2fd24b613f0e61c0ac7c90 to your computer and use it in GitHub Desktop.
Enable paypal express and paypal payflow pro at same time magento 2
Magento 2 Paypal has a weird limit that you cannot enable Paypal Expresss checkout and other payment methods
(like paypal payflowpro) at the same time.
Sure, Paypal Payflow has the option to enable express, but that is not teh same thing.
The 'express' in paypal payflow pro are direct checkout buttons on product and cart pages, which directly
make a purchase to Paypal, it does NOT add a payment method to select in checkout.
A bit of a hack to enable them both on checkout, so as selectable payment options is to lock the express
values to enbal in env.php
```
./bin/magento config:set -le payment/paypal_express/active 1
./bin/magento config:set -le payment/payflow_express/active 0
./bin/magento config:set -le payment/paypal_express_bml/active 0
./bin/magento config:set -le payment/paypaluk_express/active 0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment