mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Merge pull request #2634 from woocommerce/PCP-3729-fix-disabled-paylater-configurator
Check if paylater-configurator service exists (module can be disabled)
This commit is contained in:
commit
2ddcd53b35
1 changed files with 1 additions and 1 deletions
|
@ -1786,7 +1786,7 @@ return array(
|
||||||
|
|
||||||
$list_of_config = array();
|
$list_of_config = array();
|
||||||
|
|
||||||
if ( $container->get( 'paylater-configurator.is-available' ) ) {
|
if ( $container->has( 'paylater-configurator.is-available' ) && $container->get( 'paylater-configurator.is-available' ) ) {
|
||||||
$list_of_config[] = array(
|
$list_of_config[] = array(
|
||||||
'id' => 'pay-later-messaging-task',
|
'id' => 'pay-later-messaging-task',
|
||||||
'title' => __( 'Configure PayPal Pay Later messaging', 'woocommerce-paypal-payments' ),
|
'title' => __( 'Configure PayPal Pay Later messaging', 'woocommerce-paypal-payments' ),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue