Back
Gary Henderson

Gary Henderson

@GazBuilds

πŸ‘‹ Day-to-day I'm a Platform Engineer. I've squeezed my job into four days to give me uninterrupted time to work on my projects! I like: πŸ£πŸ‹πŸΌβš½πŸ‘¨πŸΌβ€πŸ’»πŸΆπŸŒŒ
I'm looking to add a subscription model to my service. Is this, at a high level, the logic which people follow? Any stumbling blocks I'm not currently aware of?

I'm going to make a call to the payment provider each time the services is initialised initially, then later convert the subscription status of a user to a column in the DB which is updated each day.

Reply

Hey :) Depending on what subscription service you'll use (Stripe, Lemon Squeezy, RevenueCat, etc.), they'll likely provide a webhook for when the payment fails (or expires). This can save you from checking the payment status every night for example.

Also, at some point you will need to add a grace period system (or at least it's a good feature to have). For example if a renewal payment fails, you may want to keep the customer 1-2 days on the subscription, because maybe they had an issue with their card, or the card expired, etc. Then if the payment is still not successful after this delay, you can fully terminate the subscription.

Reply
Show 1 more reply
Home
Search
Messages
Notifications
More

Are you sure?