# Stripe question

**URL:** <https://forum.bubble.io/t/stripe-question/233194>\
**Category:** Need help\
**Created:** [November 19, 2022, 11:58am UTC](https://forum.bubble.io/t/stripe-question/233194 "2022-11-19T11:58:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessefarquhar48](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jessefarquhar48/32/122980_2.png) [@jessefarquhar48](https://forum.bubble.io/u/jessefarquhar48)\
**Post date:** [November 19, 2022, 11:58am UTC](https://forum.bubble.io/t/stripe-question/233194/1 "2022-11-19T11:58:57Z")

</div>

I have now added the live keys to the stripe plugin but these workflow’s dropdown still shows only the app IDs for the test prices. How do it get it to sshow the live app IDs for the live products’ prices name?

 ![Screen Shot 2022-11-19 at 7.46.55 pm](https://us1.discourse-cdn.com/bubble/original/3X/c/6/c6a76c6bb0366374acfee4263db4629f5eb152ed.png)

Do i need to remove the dev keys for it to stop showing the dev product IDs and start showing the live products IDs?

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [November 19, 2022, 1:01pm UTC](https://forum.bubble.io/t/stripe-question/233194/2 "2022-11-19T13:01:54Z")

</div>

As per the Bubble manual, you need to make sure that both live and test versions of your Stripe account have the same plans, with the same IDs [Stripe - Bubble Docs](https://manual.bubble.io/core-resources/bubble-made-plugins/stripe#plan-name)

Although, I’m not actually sure that’s possible in Stripe nowadays (if it is, I don’t know how you do it - I’ve never needed to) - so I don’t have an answer for this (other than using your live keys in your test version - which I wouldn’t recommend) - hopefully someone else can help…

Maybe it’s better to check the ‘Dynamically specify plan’ box… then you can use ‘isn’t live version’ to define different price IDs for live and dev versions of your app…

---

<div class="post-metadata">

**Author:** ![jessefarquhar48](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jessefarquhar48/32/122980_2.png) [@jessefarquhar48](https://forum.bubble.io/u/jessefarquhar48)\
**Post date:** [November 19, 2022, 1:06pm UTC](https://forum.bubble.io/t/stripe-question/233194/3 "2022-11-19T13:06:07Z")

</div>

Yeah i’m confused and will probably just wait for the guy that helped me the other day to come online i guess. Thanks for having a crack Adam.

---

<div class="post-metadata">

**Author:** ![lindsay\_knowcode](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lindsay_knowcode/32/92967_2.png) [@lindsay\_knowcode](https://forum.bubble.io/u/lindsay_knowcode)\
**Post date:** [November 19, 2022, 3:47pm UTC](https://forum.bubble.io/t/stripe-question/233194/4 "2022-11-19T15:47:18Z")

</div>

This article by @marty.lindsay is Gold

Basically the way I do it is per this article and dynamically specify the Stripe price ids.

I do not think there is a way to make Stripe use the same Price ids in the Sandbox and Live environments. Hence the need to specify the price ids.

> **[How to receive recurring subscription payments for your SaaS Bubble app using...](https://bubblebuilder.substack.com/p/how-to-receive-recurring-subscription-539)**
>
> A walkthrough of the steps you need to complete to actually get paid for your hard work

---

<div class="post-metadata">

**Author:** ![marty.lindsay](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marty.lindsay/32/72562_2.png) [@marty.lindsay](https://forum.bubble.io/u/marty.lindsay)\
**Post date:** [November 20, 2022, 12:22am UTC](https://forum.bubble.io/t/stripe-question/233194/5 "2022-11-20T00:22:17Z")

</div>

I ended up implementing it like this:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/2/525438e2e629aa93f78a0ddefa19e642b7d03731.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/4/c46838ac9d6526ed1e921b68db8c597735901db3.png)  
where each plan has both the test and prod priceid available to choose, based on the environment  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/c/4cfa1744c6f335212831913843e12160967349a3.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [November 20, 2022, 12:32am UTC](https://forum.bubble.io/t/stripe-question/233194/6 "2022-11-20T00:32:39Z")

</div>

I used to do it this way, but now I prefer to use just a single workflow action, rather than two, to keep things simple and clean…

Just set the Stripe Plan name to: `isn't live version: formatted as text`: then do your search and define the price ID for ‘live’ and ‘test’ in the yes and no boxes accordingly…

---

<div class="post-metadata">

**Author:** ![jessefarquhar48](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jessefarquhar48/32/122980_2.png) [@jessefarquhar48](https://forum.bubble.io/u/jessefarquhar48)\
**Post date:** [November 20, 2022, 4:41am UTC](https://forum.bubble.io/t/stripe-question/233194/7 "2022-11-20T04:41:48Z")

</div>

All a bit confusing. So here’s what i have done (tell me if it is ok):

1. i made a data type for plans and made three plans (for my three product type (weekly, monthly, yearly) and pasted in the stripe API IDs for each, and made fields called “yearly”, “monthly”, and “yearly” that are set as either “yes” or “no” depending on the plan:  

2. the next thing i needed to do was make sure i ticked the box “dynamically specify plan”

3. and finally, do my expression on each of the workflows’ action step like this :

 ![Screen Shot 2022-11-20 at 3.33.43 pm](https://us1.discourse-cdn.com/bubble/original/3X/9/7/97cac0eafc1e1509503a42a56173ce9cd8e7078d.png)

Will this all work?

---

<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:** [January 28, 2023, 11:58am UTC](https://forum.bubble.io/t/stripe-question/233194/8 "2023-01-28T11:58:59Z")

</div>

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