diff --git a/modules.local/ppcp-wc-gateway/src/WcGatewayModule.php b/modules.local/ppcp-wc-gateway/src/WcGatewayModule.php index 5a73266a0..84bf00cc5 100644 --- a/modules.local/ppcp-wc-gateway/src/WcGatewayModule.php +++ b/modules.local/ppcp-wc-gateway/src/WcGatewayModule.php @@ -83,6 +83,12 @@ class WcGatewayModule implements ModuleInterface }, 9 ); + add_action( + 'woocommerce-paypal-commerce-gateway.deactivate', + function() use ($container) { + delete_option(Settings::KEY); + } + ); }