Stripe Subscription Tip 1 - Switching Dev & Live Plan IDs
In this Bubble tutorial we share a quick tip about switching from your Stripe Test Plan ID to your Stripe Live Plan ID.
Unlock Stripe subscription secrets: Learn how to seamlessly switch between dev and live plan IDs in your Stripe-powered Bubble app!
Boost your Bubble app's payment flow: Discover the simple trick to ensure your workflows use the correct Stripe plan IDs for both testing and live environments.
Master Stripe integration in Bubble: Find out how to dynamically select the right plan ID using the 'isn't live version' condition for foolproof subscriptions.
Introduction to Stripe Subscriptions in Bubble
This Bubble tutorial is a quick tip for when you're using Stripe as a payment gateway in your Bubble app. You may have noticed that both your Bubble app and Stripe have both got a development version and a live version. When you come to adding in the subscription, like I've got set up here, I've just got a button, I've added the subscribe user to a plan, action. It can be a little bit confusing how you fill this in, especially because when you add your Stripe API details into the Stripe plugin, the one built by Bubble, it will pull across the Stripe plan names from your Stripe test or development version, because you are in editing your Bubble test or development app.
Importance of Subscribing and Additional Resources
Now before I show you this quick tip, if you find videos like this useful, we really appreciate a subscribe and a like. And if you're learning Bubble, there are even more videos available on our website. You can't find them on YouTube. They're only available to members on our website. Loads and loads of hundreds of Bubble tutorials available for you to kickstart and accelerate your Bubble development journey now.
The Confusion with Stripe Plan IDs
This is confusing. And so it can lead to your live Bubble app using your Stripe test plan ID, which means it's not going to work. So a quick solution to this is to simply say, make the plan dynamic and then use the isn't live version and then format as text.
Solution: Using Dynamic Plan IDs
So if it isn't live, it's your dev version, which means that in here, you would put your whatever your plan ID from Stripe is for your dev version. And in here, you would copy and paste these rather than type them in. You would put your plan ID for your live version. That way that when Bubble runs this workflow, whether it's in the dev version, your app or the live version of your app, it automatically using this statement here isn't live version, will insert the right plan ID based on whether you are testing it as a user in your development version or whether you are a live user.
The Importance of Correct Plan IDs
One of your real customers, they will be subscribed to a subscription plan in your Stripe live section. Okay, now this hopefully that is useful because this is something which when I first came to it many years ago, trying to add in a Stripe subscription into my Bubble app. It just I just went around and around the circle trying to work out why it didn't work, how to get dev data and live data separated.
Conclusion: Implementing the Solution
Anyway, really simple. Just use the isn't live statement, modify as text and insert your dev one and your live Stripe plan IDs in here.
Get the Complete Bundle for Just $99
Access 3 courses, 390+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 390+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Save over 70%!
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
We're here to help you launch your no code SaaS. Reach out to the team and we'll double check our vast library for useful content. We'll advise you on how we'd tackle the same problem and there's a good chance we'll record the video to help the wider community.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.