mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-12 01:18:39 +08:00
Working on subscriptions (WIP)
This commit is contained in:
parent
157dd41b7c
commit
06bfe33db2
5 changed files with 165 additions and 59 deletions
|
@ -124,8 +124,9 @@ class DisableGateways {
|
|||
return true;
|
||||
}
|
||||
|
||||
$subscription_mode = $this->settings->has( 'subscriptions_mode' ) ? $this->settings->get( 'subscriptions_mode' ) : '';
|
||||
if (
|
||||
is_checkout()
|
||||
(is_checkout() && $subscription_mode === 'subscriptions_api')
|
||||
&& $this->subscription_helper->cart_contains_subscription()
|
||||
&& ! $this->subscription_helper->checkout_subscription_product_allowed()
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue