mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Do not register webhooks during credentials change handling
they will be registered later in the connection page handler
This commit is contained in:
parent
36cffad369
commit
26d64139b9
1 changed files with 0 additions and 13 deletions
|
@ -322,19 +322,6 @@ class SettingsListener {
|
|||
}
|
||||
$this->settings->persist();
|
||||
|
||||
if ( $credentials_change_status ) {
|
||||
if ( in_array(
|
||||
$credentials_change_status,
|
||||
array( self::CREDENTIALS_ADDED, self::CREDENTIALS_CHANGED ),
|
||||
true
|
||||
) ) {
|
||||
wp_schedule_single_event(
|
||||
time() + 5,
|
||||
WebhookRegistrar::EVENT_HOOK
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ( $this->cache->has( PayPalBearer::CACHE_KEY ) ) {
|
||||
$this->cache->delete( PayPalBearer::CACHE_KEY );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue