mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Add logic to enable/disable PayPal subscriptions feature
This commit is contained in:
parent
71c1937808
commit
72eb713fd4
7 changed files with 49 additions and 10 deletions
|
@ -106,7 +106,10 @@ return array(
|
|||
$product_intent = $subscription_helper->current_product_is_subscription() ? 'authorize' : $intent;
|
||||
$other_context_intent = $subscription_helper->cart_contains_subscription() ? 'authorize' : $intent;
|
||||
|
||||
if ( $settings->has( 'subscription_handler' ) && $settings->get( 'subscription_handler' ) ) {
|
||||
if (
|
||||
$settings->has( 'subscription_handler' )
|
||||
&& $settings->get( 'subscription_handler' ) === true
|
||||
) {
|
||||
return 'subscription';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue