Merge branch 'trunk' into PCP-860-apm

This commit is contained in:
Alex P 2023-06-27 16:49:53 +03:00
commit 3ef53cce69
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -25,7 +25,7 @@ return function ( ContainerInterface $container, array $fields ): array {
$settings = $container->get( 'wcgateway.settings' );
assert( $settings instanceof Settings );
$vault_enabled = false;//$settings->has( 'vault_enabled' ) && $settings->get( 'vault_enabled' );
$vault_enabled = $settings->has( 'vault_enabled' ) && $settings->get( 'vault_enabled' );
$pay_later_messaging_enabled_label = $vault_enabled
? __( "You have PayPal vaulting enabled, that's why Pay Later options are unavailable now. You cannot use both features at the same time.", 'woocommerce-paypal-payments' )