I thought this was resolved, since I had gone on Stripe and deleted all my test data. It seemed to have fixed it. However, I started testing the checkout process again and noticed that you can only pay successfully the first time you use a discount code. If you later on decide to buy another listing, and use a discount code again…. it will fail. Only once I delete the Stripe data does it work again.
If this only happens in test mode fine, no problem. But how can I know that this won’t happen after the first person uses a coupon? Will every one else experience a problem after that?
I’m including screenshot from Stripe with the log and error code. Apparently, the plugin keeps trying to create the same product/item even though it already exists? Do I have that right?
If the plan exists on the stripe then it should not create a new plan with the same name but retrieve the existing plan and use that plan to create a subscription. Can you let us know the steps to generate the issue so that we can look into this and fix it?
Thank you very much for your reply. Here are the steps that can help you replicate the issue:
1) Sign in as a front-end user and submit a paid listing
2) Use a discount code at checkout
3) Pay using Stripe (I have only tried this in Test Mode)
[this should work fine]
4) Try to create another paid listing (a new one)
5) Use the same discount code that you used before
If my theory is correct, then the first time you check out it will work just fine. However, if you decide to create another listing, it will fail with the error mentioned.
Please note that I have not had any issues with anyone signing up and getting this error message. However, I have not started using discount codes yet (so I don’t know whether this will affect others). Perhaps the issue is related only to the test environment. Perhaps it only affects the SAME user trying to buy another listing with the same discount code, which will likely never happen so it’s not a big deal. In any case, I just need to be sure that it will not be a problem to use discount codes.
So upon checking, it looks like this only will affect the same user, if they try to buy another listing and choose the same paid plan, and use the same discount code. It does not affect first-time users, even if they use the same discount code.
It works fine on our staging server. If we check out with the same items 2 times then it works fine. Can you provide admin and FTP details in private reply to look into your site? I can see 2 subscriptions in the same plan on stripe after checkout.
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.