Free trial weird redirect

Hi All,

I’m trying to add a free trial without the need for credit card. I do process payments with stripe but the free trial offered through there doesnt seem that straightforward to setup either. My app is set up for subscriptions etc to be handled at organisation level not user.

I’ve added a free trial end date data field to organisation which is setup on creation, my plan was once a 7/14 day free trial had ended they would be directed to pay a subscription via stripe.

In each page header i have a “when page is loaded” workflow which checks for an active stripe subscription and if no redirects to a subscription page, that has worked fine up until now. When i try to add “or current free trial end” it gets stuck in a weird loop where any user who does have an active subscription gets constantly redirected from index to subscription back to index back to subscription. endlessly. And i can’t seem to work out why.

any thoughts or ideas would be GREATLY appreciated.

(I tried to upload a screenshot of the syntax but apparently i’m not allowed - sorry )

checking for active stripe subscription equals no redirects to subscription page

current free trial end (I’m assuming this is also a yes/no field) equals yes redirects to subscription page

Without screen shots it is impossible to tell you what you did wrong

Either way, what you want to do is the following.

Ensure on the user data type there are the fields or ‘active stripe subscription’ of type yes/no and a field of ‘free trial end’ of type yes/no

For a user to not be redirected to the Stripe subscription page the active stripe subscription should be yes and the free trial end should be yes…which means, after the free trial ended they paid for a subscription.

For a user to be redirected to stripe subscription page the active stripe subscription should be no and the free trial end should be yes…which means, after the free trial ended they had not yet paid for a subscription.