Merge branch 'fastlane' of github.com:woocommerce/woocommerce-paypal-payments into PCP-3489-fastlane-display-notice-when-advanced-card-processing-gateway-is-disabled

This commit is contained in:
Daniel Dudzic 2024-08-01 22:58:28 +02:00
commit 61865a3b7a
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -87,6 +87,10 @@ class AxoModule implements ModuleInterface {
return $methods; return $methods;
} }
if ( ! $this->is_compatible_shipping_config() ) {
return $methods;
}
$methods[] = $gateway; $methods[] = $gateway;
return $methods; return $methods;
}, },
@ -150,7 +154,8 @@ class AxoModule implements ModuleInterface {
// Check if the module is applicable, correct country, currency, ... etc. // Check if the module is applicable, correct country, currency, ... etc.
if ( ! $c->get( 'axo.eligible' ) if ( ! $c->get( 'axo.eligible' )
|| 'continuation' === $c->get( 'button.context' ) || 'continuation' === $c->get( 'button.context' )
|| $subscription_helper->cart_contains_subscription() ) { || $subscription_helper->cart_contains_subscription()
|| ! $this->is_compatible_shipping_config() ) {
return; return;
} }