mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Ensure WC payment token does not exist before creating it
This commit is contained in:
parent
fa60c3c8f5
commit
e819dc68df
5 changed files with 93 additions and 45 deletions
|
@ -56,10 +56,14 @@ return array(
|
|||
'vaulting.payment-token-factory' => function( ContainerInterface $container ): PaymentTokenFactory {
|
||||
return new PaymentTokenFactory();
|
||||
},
|
||||
'vaulting.payment-token-helper' => function( ContainerInterface $container ): PaymentTokenHelper {
|
||||
return new PaymentTokenHelper();
|
||||
},
|
||||
'vaulting.payment-tokens-migration' => function( ContainerInterface $container ): PaymentTokensMigration {
|
||||
return new PaymentTokensMigration(
|
||||
$container->get( 'vaulting.payment-token-factory' ),
|
||||
$container->get( 'vaulting.repository.payment-token' ),
|
||||
$container->get( 'vaulting.payment-token-helper' ),
|
||||
$container->get( 'woocommerce.logger.woocommerce' )
|
||||
);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue