Error: The subscription plan in Stripe could not be created, please try again.

This topic contains 34 replies, has 3 voices, and was last updated by  Patrik 3 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #3016

    TLN
    Buyer
    Post count: 131

    Hi Guys,
    It looks like there’s an issue with check out.

    I’m unable to move past the checkout page using a discount code that makes the total $0. I get the following error: “Error: The subscription plan in Stripe could not be created, please try again.”

    Thank you very much for your help.

    Invoicing Version 1.0.9
    Invoicing – Stripe Payment Gateway Version 1.0.6

    #3019

    TLN
    Buyer
    Post count: 131

    Actually, it seems to be an issue whenever i use any discount code (even if there is a total left on the invoice).

    #3026

    Guust
    Moderator
    Post count: 29970

    Have you tried using PayPal? If PayPal subscriptions work, then that means it is your Stripe setup which is incorrect.

    Please post your URL and WP admin details in a private reply if we need to check your settings.

    Thanks

    #3029

    TLN
    Buyer
    Post count: 131

    This was due to the same item/product appearing twice in my Stripe account under test mode. I removed the additional product and it all works fine now. I’m able to use discounts without issue.

    #3035

    Guust
    Moderator
    Post count: 29970

    Thanks for letting us know.

    #3040

    TLN
    Buyer
    Post count: 131

    Here’s an update on this issue.

    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?

    Thanks for all the help guys.

    #3042

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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?

    Regards,
    Patrik

    #3043

    TLN
    Buyer
    Post count: 131

    Hi Patrik,

    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.

    Thanks very much guys!

    #3044

    TLN
    Buyer
    Post count: 131

    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.

    #3045

    Guust
    Moderator
    Post count: 29970

    Can you check this setting in your discount codes:

    #3047

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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.

    Regards,
    Patrik

    #3051

    TLN
    Buyer
    Post count: 131
    This reply has been marked as private.
    #3054

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    #3055

    TLN
    Buyer
    Post count: 131
    This reply has been marked as private.
    #3059

    Guust
    Moderator
    Post count: 29970

    Both your monthly discount codes are set to be used only once by each user.

Viewing 15 posts - 1 through 15 (of 35 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket