mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Ensure subscriptions intent added only when subscription product in cart
This commit is contained in:
parent
a8616603aa
commit
74b13e6372
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ return array(
|
|||
if (
|
||||
$settings->has( 'subscriptions_mode' )
|
||||
&& $settings->get( 'subscriptions_mode' ) === 'subscriptions_api'
|
||||
&& ( $subscription_helper->current_product_is_subscription() || $subscription_helper->cart_contains_subscription() )
|
||||
) {
|
||||
return 'subscription';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue