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.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Flexible Pricing Plans to Fit Your No-Code Journey
Choose the plan that aligns with your goals and start building your startup today.
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
Both plans offer full access to our learning resources, community, and support. The Annual plan provides a significant discount (over 15%) compared to paying monthly, and it allows you to lock in your rate for a full year.
Absolutely! You can easily upgrade or downgrade your membership plan at any time by logging into your account and selecting the desired plan. Any unused portion of your current plan will be prorated and applied to your new plan.
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.
If you decide that Planet No Code isn't the right fit for you, you can cancel your membership at any time by logging into your account and navigating to the subscription management page. Click the "Cancel Membership" button, and your membership will be terminated at the end of your current billing cycle.