How to add a trial period in stripe

I’ve just gone through this course for setting up stripe in my bubble app Bubble x Stripe: Integrate a SaaS payments solution (Available now). it’s been really good and I’ve got it all setup, but since this course, stripe has changed where you can add a trial period, so I’m not able to add the trial to the product, it seems like you can only add to the pricing table settings. is anyone able to help out with adding a trialing period to subscriptions in the same way as this course?

No, if you are using plugin you can add trial days there and also if you use promo code you can create promo code and give to user which they can enter into strip and get discount or trial

Ok so for anyone trying to figure this out, it turned out to be quite easy in the end. To add a trial period go to the API connector plugin settings for the checkout-session.

Add a new parameter called: subscription_data[trial_period_days] (details in the stripe API docs here Create a subscription | Stripe API Reference)

In the value field, add the number of days for the trial period. eg 14 for a 14 day trial period.

image

Then go to the pricing table and go to the workflow for the get started button.

This is where you can add the trial period in the checkout session

and that’s it. When the user goes to the stripe page, it will show the trial period.

On the account page, you can also pull back the trail start and end dates as well, to show this on the user account page if you want.