mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Refactor payment token checker
This commit is contained in:
parent
b5f74f1207
commit
e9ddd3d788
4 changed files with 84 additions and 44 deletions
|
@ -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' ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue