mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Delete WC card payment token if it does not exist on PayPal
This commit is contained in:
parent
ad7e7cbe55
commit
8ea790fedd
2 changed files with 29 additions and 1 deletions
|
@ -135,6 +135,7 @@ return array(
|
|||
$container->get( 'api.endpoint.order' ),
|
||||
$container->get( 'wcgateway.endpoint.capture-card-payment' ),
|
||||
$container->get( 'api.prefix' ),
|
||||
$container->get( 'api.endpoint.payment-tokens' ),
|
||||
$logger
|
||||
);
|
||||
},
|
||||
|
@ -1587,7 +1588,7 @@ return array(
|
|||
)
|
||||
);
|
||||
},
|
||||
'wcgateway.endpoint.capture-card-payment' => static function( ContainerInterface $container ): CaptureCardPayment {
|
||||
'wcgateway.endpoint.capture-card-payment' => static function( ContainerInterface $container ): CaptureCardPayment {
|
||||
return new CaptureCardPayment(
|
||||
$container->get( 'api.host' ),
|
||||
$container->get( 'api.bearer' ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue