mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
🐛 Subscribe to webhooks after login
This commit is contained in:
parent
15be837d24
commit
e6fef4a6f5
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,7 @@ use WooCommerce\PayPalCommerce\Settings\Data\GeneralSettings;
|
||||||
use WooCommerce\PayPalCommerce\WcGateway\Helper\EnvironmentConfig;
|
use WooCommerce\PayPalCommerce\WcGateway\Helper\EnvironmentConfig;
|
||||||
use WooCommerce\WooCommerce\Logging\Logger\NullLogger;
|
use WooCommerce\WooCommerce\Logging\Logger\NullLogger;
|
||||||
use WooCommerce\PayPalCommerce\Settings\DTO\MerchantConnectionDTO;
|
use WooCommerce\PayPalCommerce\Settings\DTO\MerchantConnectionDTO;
|
||||||
|
use WooCommerce\PayPalCommerce\Webhooks\WebhookRegistrar;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class that manages the connection to PayPal.
|
* Class that manages the connection to PayPal.
|
||||||
|
@ -418,6 +419,11 @@ class AuthenticationManager {
|
||||||
* first time.
|
* first time.
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_paypal_payments_authenticated_merchant' );
|
do_action( 'woocommerce_paypal_payments_authenticated_merchant' );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Subscribe the new merchant to relevant PayPal webhooks.
|
||||||
|
*/
|
||||||
|
do_action( WebhookRegistrar::EVENT_HOOK );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue