mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Merge branch 'trunk' into PCP-886-hide-pay-pal-card-processing-tab-is-not-available-in-country-or-for-merchant
This commit is contained in:
commit
0655a8bdce
1 changed files with 15 additions and 0 deletions
|
@ -143,6 +143,21 @@ class WebhookModule implements ModuleInterface {
|
||||||
$logger->error( 'Failed to load webhooks list: ' . $exception->getMessage() );
|
$logger->error( 'Failed to load webhooks list: ' . $exception->getMessage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_action(
|
||||||
|
'woocommerce_paypal_payments_gateway_migrate',
|
||||||
|
static function () use ( $container ) {
|
||||||
|
$registrar = $container->get( 'webhook.registrar' );
|
||||||
|
assert( $registrar instanceof WebhookRegistrar );
|
||||||
|
add_action(
|
||||||
|
'init',
|
||||||
|
function () use ( $registrar ) {
|
||||||
|
$registrar->unregister();
|
||||||
|
$registrar->register();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue