I created the plugin for different payment methods by following this post.
It works fine, but it has an error.
When you want to change to another shipping method, if you previously had a payment method selected and this is disabled by the plugin, it's enabled and duplicated.
This 2nd failure is given even if you don't select any payment method previously
If they can review it, it's appreciated