# Stripe Plans Work In Dev but Not Live

**URL:** <https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575>\
**Category:** Need help\
**Created:** [December 1, 2021, 1:40pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575 "2021-12-01T13:40:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![portageusa](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@portageusa](https://forum.bubble.io/u/portageusa)\
**Post date:** [December 1, 2021, 1:40pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575/1 "2021-12-01T13:40:06Z")

</div>

Hello!

I am just about ready to launch my app and recently ran into an issue with the stripe plug in. I have entered both my test/dev and live API keys, built my two products (each with a couple price points) in Stripe. When using the subscribe user to a plan action in the workflow it works great in Dev. I can add the correct plan and run the workflow just fine. When I flip to live it gives me an error saying it cannot fine the plan under that id. My understanding is that these two plans have different IDs between Dev and Live. I am struggling with how to ensure they are the same in Stripe between the two environments. It looks like stripe auto generates these and they are always different.

Any thoughts?

Thanks!

Please pick a subcategory to help organize the information. Thanks!

Also, the more context you provide with your questions (screenshots, link to an open app, etc.), the more likely you’ll get good help quickly 🙂

 ![Screen Shot 2021-12-01 at 7.22.52 AM](https://us1.discourse-cdn.com/bubble/original/3X/d/5/d52667f0f9d62c689419806e3fdd1ce438965230.png)  
 ![Screen Shot 2021-12-01 at 7.23.01 AM](https://us1.discourse-cdn.com/bubble/original/3X/b/7/b7eb2c26e812e2951820aaaff740409472991265.jpeg)

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [December 1, 2021, 1:51pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575/2 "2021-12-01T13:51:49Z")

</div>

The plans you create in Development are not available in your Live Stripe environment. You need to create the plan again in the Live environment.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [December 1, 2021, 1:54pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575/3 "2021-12-01T13:54:02Z")

</div>

Hey @portageusa 👋

In Stripe there is a button to copy the plan to live. That’s the best way to ensure that it will work. I would try deleting your live plans and try pressing the copy button within Stripe to see if that fixes it.

Hope that helps! 😊

@j805 [www.NoCodeMinute.com](http://www.nocodeminute.com/)

For All Your No-Code Education Needs:

- [One-on-One Coaching](https://www.nocodeminute.com/?page=tutoring)

- [eLearning Hub](https://www.nocodeminute.com/signup)

- [Video Tutorials](https://www.nocodeminute.com/1-minute)

- [Subscribe to Free Videos on YouTube](https://m.youtube.com/channel/UC0a7cARD26mbV9YiMu0nLaw)

---

<div class="post-metadata">

**Author:** ![portageusa](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@portageusa](https://forum.bubble.io/u/portageusa)\
**Post date:** [December 1, 2021, 2:06pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575/4 "2021-12-01T14:06:32Z")

</div>

Hey Jason - thanks. That is what I originally did and still did not work. Stripe continues to produce a different plan ID for each and bubble is still struggling to recognize them as the same thing in both environments. I assume they need the same ID not just names etc right?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [December 1, 2021, 2:18pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575/5 "2021-12-01T14:18:41Z")

</div>

@portageusa I don’t think they need the same IDs. If you are struggling with Bubble automatically detecting it for you, you also have the option of putting the IDs manually. You can store them somewhere or just type them as static data too. Just have one workflow have a condition if it’s Live and one if its Test. That could be a last resort option if Bubble doesn’t take care of it for you. 😊

---

<div class="post-metadata">

**Author:** ![portageusa](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@portageusa](https://forum.bubble.io/u/portageusa)\
**Post date:** [December 1, 2021, 2:20pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575/6 "2021-12-01T14:20:12Z")

</div>

Thanks! I am going to put them in an option set and try to put conditions on the workflow to use one when in live and another when not in live.

Thanks! Hope all is well!

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [December 1, 2021, 2:47pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575/7 "2021-12-01T14:47:55Z")

</div>

Sounds good. As long as API keys aren’t saved as option sets I think that should be fine. Someone can correct me if I’m wrong.

You can also add a version to the option set itself. One for live and the other for test. Based on what version it is you can filter them to find the correct plan. That would help reduce it to one workflow.

Let us know if you have any more questions. 😊

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [February 9, 2022, 1:40pm UTC](https://forum.bubble.io/t/stripe-plans-work-in-dev-but-not-live/180575/8 "2022-02-09T13:40:23Z")

</div>

Closed on February 9, 2022, 1:40pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
