I wrote the following plugin for Tron crypto payments in Woocommerce.
https://github.com/aralsoft/mrblockpay-woocommerce-plugin
However the plugin code is executed whichever payment method is selected. Even when the plugin is deactivated in Woocommerce settings. The only time it is not executed during checkout is when the plugin itself is inactivated. There are no server PHP errors, no errors in Woocommerce logs and no console errors. I tried using the default theme with all plugins except Woocommerce inactive. Any ideas ?
I choose a different payment method and my plugin code is still being executed.