Hi,
Yes, the only way around this was to delete the enrolment method and then recreate it.
Luckily, I’m only just building the platform from scratch now but I could imagine this being quite significant and problematic if we had hundreds of courses and we needed to switch or do some maintenance at some time.
The only way I could see this working is that you have both the Live and Test API Keys defined in the plugin and that when you create an enrolment method, it creates products in both environments, linking to both. Then the toggle that you would have in your plugin will determine which pathway to use during enrolment or payment processing.
Appreciate your investigation and resolution.
Cheers,
Ray