Refactor payment token checker

This commit is contained in:
dinamiko 2022-03-01 16:10:46 +01:00
parent b5f74f1207
commit e9ddd3d788
4 changed files with 84 additions and 44 deletions

View file

@ -41,9 +41,9 @@ return array(
$container->get( 'woocommerce.logger.woocommerce' )
);
},
'vaulting.payment-token-checker' => function(ContainerInterface $container) : PaymentTokenChecker {
'vaulting.payment-token-checker' => function( ContainerInterface $container ) : PaymentTokenChecker {
return new PaymentTokenChecker(
$container->get('vaulting.repository.payment-token'),
$container->get( 'vaulting.repository.payment-token' ),
$container->get( 'wcgateway.settings' ),
$container->get( 'wcgateway.processor.authorized-payments' ),
$container->get( 'api.endpoint.order' ),