mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Ensure subscriptions mode setting exist
This commit is contained in:
parent
1d0d4d21ad
commit
67074a6c9f
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ class PayPalSubscriptionsModule implements ModuleInterface {
|
|||
|
||||
$product = wc_get_product( $product_id );
|
||||
|
||||
$settings = $c->get( 'wcgateway.settings' );
|
||||
assert($settings instanceof Settings);
|
||||
$settings = $c->get( 'wcgateway.settings' );
|
||||
assert( $settings instanceof Settings );
|
||||
|
||||
$subscriptions_mode = $settings->has( 'subscriptions_mode' ) ? $settings->get( 'subscriptions_mode' ) : '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue