Subscription box
L2–L4
Level range
8
Sprints
42
Tasks
Backend and frontend
Built as
What you’ll build
A subscription with real billing. Customers pick a plan and see the date of the next charge. They can skip or pause a month, switch plan partway through a month and pay the exact difference, and stop on a date the site tells them. A card that fails is tried again on a set schedule and then given up on. The shop sees who is due and what to pack.
A skill in every sprint
You show you have it in a pull request your team reviews, then explain it in a walkthrough.
Authentication
You can register and sign in a user, keep a request authenticated without asking for the password again, and explain where the credential lives in the browser and why there rather than somewhere else.
Charging the same card monthly
You can start a subscription, produce the next charge on time exactly once, and show what happens between a failed renewal and a cancelled subscription.
Roles and permissions
You can give users different roles and have the server refuse what a role may not do — not merely hide the button — and show the refusal working against a request the interface never offered.
Background jobs
You can hand work to a worker, tell the user it is in progress, and show the result when it lands — and say what happens to that work if the process dies halfway.
Going live
Somebody who has never met you can open a URL and use the product — and you can say what is different about the copy running there, where its secrets come from, and what you do when a release turns out to be wrong.
8 sprints, 42 tasks
Every sprint has a goal and a set of tasks. Open a sprint to see the tasks you will pick up.
- Sprint 01
An account to bill
A customer can create an account, come back to it the next day, and sign out of it properly.
4 tasks
- Let a visitor create an account and be signed in straight away
- Keep customers signed in when they come back the next day
- Make signing out end the session on the server
- Show a new customer with no plan what to do next
- Sprint 02
The cycle
A customer picks a plan, pays for the first month once, and sees the date of the next charge.
6 tasks
- Let the shop set up the plans it sells
- Build the shop's own pretend card machine
- Charge the first month when a customer picks a plan, and show the next charge date
- Let staff run the billing for any chosen date
- Make sure the same billing date run twice charges once
- Show customers what they have paid and what is next
- Sprint 03
Two sides of the counter
The shop sees who is due to pay and what to pack. A customer sees only their own subscription, because the app refuses other requests, not because it hides them.
5 tasks
- Add staff accounts that nobody can create for themselves
- Show staff who is due to pay and what to pack
- Show each customer only their own subscription
- Refuse direct requests for another customer's subscription
- Let staff start a subscription for a customer who telephoned
- Sprint 04
Changing your mind
A customer can skip a month, pause, or stop, and the app tells them the date each one takes effect.
5 tasks
- Let a customer skip their next box
- Set a skip deadline and show it to customers
- Let a customer pause until a date they choose
- Stop a subscription at the end of the period already paid for
- Let a customer undo a stop before their last period ends
- Sprint 05
Halfway through the month
A plan switch partway through a period costs the right amount, to the penny, and does not change the customer's charge day.
5 tasks
- Show a customer what a plan switch will cost before they confirm
- Charge only for the days left when a customer upgrades
- Give credit when a customer downgrades, and use it on the next charge
- Keep the customer's charge day the same when they switch plan
- Make several switches in one period add up to the right total
- Sprint 06
The card says no
A declined charge is tried again on days the shop chose, then given up on, and no customer is cut off by surprise.
6 tasks
- Keep the subscription open when a charge is declined
- Retry a declined charge on days the shop chose
- Tell the customer about a failed payment in time to fix it
- Charge a new card straight away when a customer updates it
- Stop the subscription after the last retry fails, and tell both sides
- Show staff every customer whose payment is being chased
- Sprint 07
Work that runs itself
The billing run happens by itself every day, at the right hour, and never charges anybody twice.
5 tasks
- Run the billing every day with nobody pressing anything
- Make sure a run that crashes halfway never charges twice
- Show staff when a billing run fails, without waiting for a customer
- Make each run use the facts at the moment it runs
- Send each billing email only once
- Sprint 08
Open for business
The shop is on the internet at its own address, billing on real dates by itself, with nobody's laptop involved.
6 tasks
- Put the app online so a stranger can use it
- Move every setting and secret out of the code and into the environment
- Run the scheduled billing on the server, on the shop's calendar
- Send real emails that reach the customer's inbox
- Give the shop its own secure web address
- Make a bad release easy to undo before the next billing run
Read before you build
Senior engineers read the docs before they touch the code. Every Blueprint comes with short documents on the product and its world, the kind a team hands a new hire. Read them well and you ask sharper questions and walk into every review prepared.
What you are building
The product, the two kinds of people who use it, and the four parts that make it hard.
How a billing cycle actually works
The words you need: the charge day, the period, what a skip and a pause change, and why most complaints are about dates, not prices.
More commerce Blueprints
Corner shop storefront
An online shop for one small corner shop. The shelf shows what is really in stock, a basket is still there the next day, the shop never takes money for something it does not have, and the shopper can follow their order until they collect it.
Food ordering with options
Online ordering for one restaurant, where a dish is a set of choices, not a single price. A size sets the price, extras add to it, some extras only come on some sizes, and the total is worked out by the server from what the customer chose, never taken from the browser.
Restock waitlist
A waiting list for things a small shop has sold out of. People ask to be told when a thing comes back. When three come back, the stock goes to people in the order they asked. Each unit is held long enough for the person to act, is offered to nobody behind them until that time ends, and is never offered to the same person twice.
Not the one for you?
Every Blueprint is planned the same way, across health, shopping, money, education and more.
Browse all BlueprintsBuild subscription box.
Start your free week. Adaeze runs your kickoff, and Lars reviews every pull request.
Start today, for free