Do not execute current free trial flow if vault v3 enabled

This commit is contained in:
Emili Castells Guasch 2024-04-03 09:59:40 +02:00
parent 5cdb1bbce0
commit 2bf3c14feb
6 changed files with 37 additions and 9 deletions

View file

@ -64,4 +64,7 @@ return array(
$container->get( 'woocommerce.logger.woocommerce' )
);
},
'vaulting.vault-v3-enabled' => static function( ContainerInterface $container ): bool {
return $container->has( 'save-payment-methods.eligible' ) && $container->get( 'save-payment-methods.eligible' );
},
);