TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Where can I learn more about SaaS user subscription business logic

4 点作者 sathishmanohar将近 9 年前
I am building a SaaS application, I want to learn more about the business logic options available and things I need to build into the application for a good subscription experience.<p>For example: * What happens when credit card is declined * What happens when they downgrade the subscription * How long should the data be retained in a suspended account<p>What are the general things that one should be aware of when building a SaaS application? Where can I learn more?

4 条评论

patio11将近 9 年前
Ooof, this is a deep topic and people bleed all over it when running a SaaS company. I used Pin Payments (nee Spreedly Subscriptions) for Appointment Reminder. You will probably end up using Stripe&#x27;s subscription feature, which has some (but not all) of this logic baked in.<p>&gt; What happens when credit card is declined<p>You retry the card on three consecutive days (many declines are due to network or balance issues) then start emailing the customer about it. After a few emails you escalate to phone calls. Except, you don&#x27;t do this -- you use Churnbuster to do this, because for a pittance they will make you thousands of dollars a month at scale. (Churnbuster assumes you&#x27;re going to be using Stripe... but you should use Stripe.)<p>&gt; What happens when they downgrade the subscription<p>Judgment call here: do you want to do a pro-rated refund or a pro-rated account credit? e.g. If someone changes from a $100 plan to a $25 plan halfway through the month, we observe that they&#x27;ve consumed $50 worth of services and have $50 remaining, which we could either a) send them back on their CC and bill them normally from here out or b) give them an account credit for $50, which will cover their next two months of service, then bill them normally.<p>The case for the account credit is largely &quot;it optimizes for your cash-flow management as opposed to their cash-flow management.&quot; (This can be important in corner cases like e.g. switching from $5.5k for 12 months to $1k per month in month 2. Which, by the way, annual to monthly pro-ration logic is something you&#x27;re going to probably have to write.)<p>&gt; How long should the data be retained in a suspended account<p>Judgment call; I default to &quot;indefinitely unless legally required otherwise or requested otherwise.&quot; Many customers will come back to you a year later and _expect_ that you still have their account on file. Customers who are more privacy conscious will tell you; you can delete their account then. (Note that deleting an account is largely a feel-good measure for the customer and accomplishes epsilon from the privacy perspective. There are probably 1+ people reading this who disagree with this assertion, so riddle me this: what happens to our last 2 years of backups when I delete an account? Do I re-hydrate all of them, run the delete SQL, then re-backup and blow away the old version? Nope. Do I toss 2 years of backups because a $29 account churned? Umm, nope. We have your data at least as long as our data recovery window <i>and it is probably recoverable for longer than that</i>, and us deleting an account does not change that.)
danieltillett将近 9 年前
Don&#x27;t worry about any of this. Just workout how to get paying customers and leave problems like this for later. To use an Olympic analogy you are worrying if you should put you head down at the finish line of the 100m final. Yes it might be a good idea, but you need to make the finals first.
brudgers将近 9 年前
For building a SaaS company I think several of Patrick &#x27;patio11&#x27; McKenzie&#x27;s podcasts might be worth listening to. The RSS feed is here: <a href="http:&#x2F;&#x2F;www.kalzumeus.com&#x2F;category&#x2F;podcasts&#x2F;feed&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.kalzumeus.com&#x2F;category&#x2F;podcasts&#x2F;feed&#x2F;</a><p>Good luck.
gentleteblor将近 9 年前
&gt;&gt; Don&#x27;t worry about any of this. Just workout how to get paying customers and leave problems like this for later.<p>This is good advice.<p>When you&#x27;re sure it&#x27;s time to dig into this topic, Stripe&#x27;s implementation docs are a great resource (even if you don&#x27;t use Stripe).