Uninstalled Plugin's payment method gets activated from Backend

Hi, I have a development site with shopware setup. While testing a payment plugin, I noticed that after uninstalling a plugin, the payment method is still there among payment methods in inactive state. When a user again activates a payment method among those payment methods which were deactivated after plugin uninstall, and the payment method is added in sales channel, there is error while checkout. Is there a solution for this?

Hi athira.di,
if you de-activate a payment extension, it doesn’t mean, that the payment methods get removed from the sales channel settings. The payment methods itself may also be active.
Kind regards,
Markus

Hi MarkusFischer, I understand that the payment method does not get removed from sales channel. Also I understand that after uninstalling the payment extension, payment method remains for transaction history. But can payment method not get activated in case the payment extension is not there any more? Can you restrict it getting activated by user to avoid errors?