Monthly Credits for my Subscribers ✨

Hello bubblers! I’ve ran into some problems and been stuck for a few days. Can’t seem to understand how to create the logic.

Logic:
All subscribers get X amount of credits every month. All credits resets every month (Gets overwritten with new amount) And this date is different depending when they first started the subscription. I have monthly and yearly plan.

How to structure the workflow?
Good to mention, I use stripe. I have connected the API to the workflow and get information when updates. So I figured that “Last payment date” will automatic update every month and I can use that date to do this. But another problem is yearly plan, last payment date will not update for One year.

(Sorry for the mess, this is my first real Application)

This is “On page load” but that logic is clearly flawed.

Thanks so much in advance, wish you a blessed day.

Sincerely,
Junior H

I think I just solved it with a Cron job that resets every 1st day of the month and credits given out on page load!

This topic was automatically closed after 70 days. New replies are no longer allowed.