Flush APM feature cache on merchant disconnect

This commit is contained in:
Philipp Stracker 2025-01-13 14:09:04 +01:00
parent 53ce535f4a
commit ec029dd4c5
No known key found for this signature in database

View file

@ -122,6 +122,11 @@ class AuthenticationManager {
* is no need for it here, it's good house-keeping practice to clean up.
*/
do_action( 'woocommerce_paypal_payments_flush_api_cache' );
/**
* Clear the APM eligibility flags from the default settings object.
*/
do_action( 'woocommerce_paypal_payments_clear_apm_product_status' );
}
/**
@ -420,6 +425,11 @@ class AuthenticationManager {
*/
do_action( 'woocommerce_paypal_payments_authenticated_merchant' );
/**
* Clear the APM eligibility flags from the default settings object.
*/
do_action( 'woocommerce_paypal_payments_clear_apm_product_status' );
/**
* Subscribe the new merchant to relevant PayPal webhooks.
*/