I’m resubmitting this issue as it has been marked “resolved” but it is not.
When a customer tries to pay using a discount code, they get the following error “Error: The subscription plan in Stripe could not be created, please try again.”
Looking at the Stripe logs, I can see that the error is “Product already exists”. All I can figure is that your plugin is trying to add the same plan to Stripe, and it already exists.
At first I thought it was just me having issues in test mode, because I would have to clear the data on Stripe every time before paying with a discount code, but in fact the issue affects everyone. We ended up disabling all discount codes since everyone who tried reported this same problem and error code.
To open a new support ticket, first select the relevant forum and then click the "New Post" button. Example: You need support for the core plugin? Click on Core Plugin support and click on the "New Post" Button.