# Trial periods for paid services

**URL:** <https://forum.bubble.io/t/trial-periods-for-paid-services/2285>\
**Category:** Need help\
**Created:** [April 8, 2016, 6:24am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285 "2016-04-08T06:24:40Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![levon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/levon/32/89793_2.png) [@levon](https://forum.bubble.io/u/levon)\
**Post date:** [April 8, 2016, 6:24am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/1 "2016-04-08T06:24:40Z")

</div>

@emmanuel can you please share with us the best way to configure a trial period of lets say 30 days for a user after which they are supposed to pay with Stripe.  
so my question is how do you track that 30 days are expired - do you run a daily workflow or is it done on each attempt to log in? Or you run a workflow with “do when” scenario?  
Please help us out as our client wants users to have 30 days free trial, then either enter credit card be charged and continue using the service or prohibit further access.  
Thanks,

---

<div class="post-metadata">

**Author:** ![raymond](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@raymond](https://forum.bubble.io/u/raymond)\
**Post date:** [April 8, 2016, 6:58am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/2 "2016-04-08T06:58:03Z")

</div>

Will something like this maybe help you?  
Set a start date and end date, subtract the two and do a workflow that sets the users account to suspended or something when the trial period is over and he has not paid.

> [@Time Difference between 2 dates](http://forum.bubble.io/t/time-difference-between-2-dates/2162):
>
> Is there an easy way to determine the h:mm:ss between two dates? I want to subtract two datetime values from each other and determine the hh:mm:ss and have it formatted that way. Thanks

---

<div class="post-metadata">

**Author:** ![levon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/levon/32/89793_2.png) [@levon](https://forum.bubble.io/u/levon)\
**Post date:** [April 8, 2016, 8:23am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/3 "2016-04-08T08:23:16Z")

</div>

i guess it could but maybe there more efficient ways to do it?

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [April 8, 2016, 9:52am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/4 "2016-04-08T09:52:29Z")

</div>

Use Zapier “Delay For” ?

So trigger a zap that delays and then calls the Bubble workflow API to check the account ?

---

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [April 8, 2016, 11:22am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/5 "2016-04-08T11:22:58Z")

</div>

When signing in, I trigger several “API calls” which will be run in future.  
For instance, in 27 days, if user has still not subscribe to a plan (the condition is set at the api level), send reminder email. And in 30 days, if he has still not subscribed, change user’s statut to “Trial Expired”.

---

<div class="post-metadata">

**Author:** ![levon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/levon/32/89793_2.png) [@levon](https://forum.bubble.io/u/levon)\
**Post date:** [April 8, 2016, 11:54am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/6 "2016-04-08T11:54:57Z")

</div>

interesting, I also noticed that Stripe has a trial period parameter in the plan settings  
i wonder how it works, do we need to get user’s credit card details if we want to sign him up to a plan with trial period or it can be done later?

---

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [April 8, 2016, 12:06pm UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/7 "2016-04-08T12:06:39Z")

</div>

with bubble integration, user must give its CC infos to start its trial

---

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [April 8, 2016, 12:12pm UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/8 "2016-04-08T12:12:22Z")

</div>

otherwise, you can use Stripe’s webhooks to manage the end of trial, using Customer ID to find back the user. but there are some limitation right now. JSON returned to Bubble must be flat or with only one level of list. You can not access for instance a list of things’s List of things’s Parameters.

---

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [April 8, 2016, 12:12pm UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/9 "2016-04-08T12:12:53Z")

</div>

here are some interesting talks about trial / payement upfront or at the end.

> <https://stackoverflow.com/questions/24218985/stripe-billing-trial-with-no-plan-selected-and-no-credit-card-entered-at-signup>

  

> <https://stackoverflow.com/questions/31848825/stripe-subscription-plan-with-trial-but-immediate-payment-and-with-end-date>

---

<div class="post-metadata">

**Author:** ![levon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/levon/32/89793_2.png) [@levon](https://forum.bubble.io/u/levon)\
**Post date:** [April 8, 2016, 12:26pm UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/10 "2016-04-08T12:26:03Z")

</div>

Thanks a lot! That’s really helpful. Still since Bubble doesn’t take credit card details upfront and offers 1 month trial I wonder how they manage it. Do they manage the free plan also with Stripe or simply on Bubble with certain checks via workflows? @emmanuel

---

<div class="post-metadata">

**Author:** ![levon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/levon/32/89793_2.png) [@levon](https://forum.bubble.io/u/levon)\
**Post date:** [April 8, 2016, 12:26pm UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/11 "2016-04-08T12:26:34Z")

</div>

Since there are a few ways to implement it, I wonder what’s the most efficient one.

---

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [April 8, 2016, 1:14pm UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/12 "2016-04-08T13:14:01Z")

</div>

I’e done several tests. I came up with managing the trial period on my side. And I created a Thing called “Stripe Plan” in my ddb, updating User’ Stripe Plan through an API call doing several checks. It’s the best way I found out for managing features access per subscription plan.

If you use Stripe’s trial period, you’ll have to refer to User’ Subscription’s Status.

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [April 9, 2016, 2:33pm UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/13 "2016-04-09T14:33:10Z")

</div>

The way i did it is on user is logged in event. For Bubble that worked well. it’s a bit more generous, since an app could keep running beyond 30 days, but the likelihood a user won’t come back to the editor to modify his app if he uses it is quite low.

---

<div class="post-metadata">

**Author:** ![levon](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/levon/32/89793_2.png) [@levon](https://forum.bubble.io/u/levon)\
**Post date:** [April 14, 2016, 9:03am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/14 "2016-04-14T09:03:11Z")

</div>

but do you sign up the user to a free plan on Stripe or you sign up to Stripe plan only when the user is paying?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [April 14, 2016, 12:36pm UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/15 "2016-04-14T12:36:46Z")

</div>

Only when they’re paying

---

<div class="post-metadata">

**Author:** ![joshdelaware](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@joshdelaware](https://forum.bubble.io/u/joshdelaware)\
**Post date:** [May 18, 2020, 4:12am UTC](https://forum.bubble.io/t/trial-periods-for-paid-services/2285/16 "2020-05-18T04:12:57Z")

</div>

> [@NicolasDap](#):
>
> Stripe subscription plan with trial but immediate payment and with end date

Except the status doesn’t work…

> [@Stripe Plugin by Bubble](http://forum.bubble.io/t/stripe-plugin-by-bubble/91994):
>
> Guides I’ve read only go as far as setting up the API settings, and then Bubble’s documentation only have references to explain what each workflow action does. However, I don’t really know where to start with regards to where to build these workflows into my app, where to add buttons and how to manage access to the app linking to whether or not subscription is active etc. I understand that it may be hard to create a guide for this if everyone is creating a different app structure. However, in m…
