This PR introduces an extra condition to enable the local APMs, requiring the PayPal payment gateway to be enabled in order to display the additional local APM gateways.
Steps to Test
Navigate to WC → Settings → Payments → PayPal and disable it
Navigate back to Payment tab
Observe APMs are in payment list
Enable one of them or all (set proper currency in General tab)
Navigate to shop, add product to cart, navigate to checkout page
Select proper country to test
Observe APM is visible
Verify that the local APMs are no longer showing up on the payment gateways table when the PayPal gateway is disabled.
Description
This PR introduces an extra condition to enable the local APMs, requiring the PayPal payment gateway to be enabled in order to display the additional local APM gateways.
Steps to Test
Navigate to WC → Settings → Payments → PayPal and disable it
Navigate back to Payment tab
Observe APMs are in payment list
Enable one of them or all (set proper currency in General tab)
Navigate to shop, add product to cart, navigate to checkout page
Select proper country to test
Verify that the local APMs are no longer showing up on the payment gateways table when the PayPal gateway is disabled.