mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
make sure client_id was populated, otherwise we try to create webhooks after reset without a client_id
This commit is contained in:
parent
74eacf81b3
commit
6378287962
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class SettingsListener
|
|||
if (! $this->settings->has('client_id') && $settings['client_id']) {
|
||||
$this->webhookRegistrar->register();
|
||||
}
|
||||
if ($this->settings->has('client_id')) {
|
||||
if ($this->settings->has('client_id') && $this->settings->get('client_id')) {
|
||||
$currentSecret = $this->settings->has('client_secret') ?
|
||||
$this->settings->get('client_secret') : '';
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue