Subscription billing portal template: make it your own with one prompt
Customers want four things from a billing portal: see my plan, change it, get my invoice, and stop. Here is a prompt that builds all four on Stripe.
Yes, you can build your own subscription billing portal without coding, and the template is one prompt. Describe the plans and the four things customers do (view the plan, change it, get invoices, cancel or pause) and Swarmz builds a portal with sign-in, a database and card payments through Stripe. I founded Swarmz, and the main reason I like this route is that you stop paying a platform to be the middle of your own customer relationship.
Built from one prompt
A billing portal with plans, invoices and cancel or pause
Free plan, no card neededNames, prices and reviews in the example are placeholders
You will finish with a portal where customers manage their own plan and you see every subscriber in one table.
The portal is for customers, the admin page is for you
Most billing portals are built backwards, from your needs. Start from what a customer opens it to do.
What customers come for:
See my plan and what it costs. Plan name, price, billing period and the next charge date, on the first screen.
Change plan. Upgrade now, downgrade at the end of the period. Say which in plain words.
Download an invoice. For their accountant, usually. They should find it in two clicks and never have to email you.
Update my card. The most common cause of failed payments is an expired card. Make it easy.
Pause or cancel. Yes, put it where people can find it. A hidden cancel button creates chargebacks and angry reviews. A pause option, such as a month or three, keeps some people who would have left.
What you need behind it:
A subscriber table with plan, status (active, paused, past due, cancelled) and next renewal.
Failed payment handling. Decide how many retries, how many days of grace, and what the customer sees.
Proration rules. If someone upgrades mid month, do they pay the difference now or at renewal? Write the rule before you build.
A cancellation reason, one question with five choices. It is the cheapest market research you will ever do.
Rules around cancellation, trials and reminders differ by country, so check the ones where your customers live.
The example above shows three plans, a card on file, an invoice list, and pause and cancel buttons. Change the brackets, press build, and you are editing your own version.
Step by step
1. Open a free account
Sign up at swarmz.net on the free plan, with 5 credits a day and no card. You can also try Pro free for 3 days with 25 credits (card needed, becomes Pro unless cancelled).
2. Write your plans as a small table first
Name, monthly price, yearly price, what is included. Three plans is a good start, because a fourth makes people stall. Paste them into the prompt in place of the generic three.
3. Turn on payments in test mode
Swarmz Payments runs on Stripe and supports subscriptions, invoices and payment links. Each app gets its own connected Stripe account, and you are the merchant of record, so refunds and chargebacks are yours. Stripe's usual processing fees apply and Swarmz takes a small platform fee on each payment. Start in test mode with test cards and go live after Stripe verification.
4. Run a whole customer life in test mode
Sign up, subscribe monthly, upgrade, downgrade, pause, resume, cancel. Use a test card that fails, to see what a past due customer sees. Check each step shows up on your admin page and in the Payments tab, which handles refunds and payouts.
5. Read your invoices like a customer
Open an invoice and check the business name, address, tax lines and the plan name. If you charge tax in your country, set this up properly with your accountant and the Stripe settings. Do not rely on the first draft for legal wording.
6. Write the three emails you actually need
Payment failed, card expiring, subscription cancelled. If you want them sent automatically, say "ask Swarmz to add it" and check what it proposes, perhaps through a connector like Gmail. Test that a real email arrives before you trust it.
7. Publish on your own domain
Publish in one click to a swarmz.cloud address with SSL. A custom domain such as billing.yourbrand.com needs Pro at $25 a month, and looks far more trustworthy next to a card form.
Follow-up prompts
Add a pause option for 1, 2 or 3 months. While paused, show the resume date and do not charge the customer.When a payment fails, show a banner in the portal asking the customer to update their card, and mark the subscriber as past due on the admin page.Add a cancel flow that asks for one reason from five choices, offers a pause instead, and then confirms the end date.Add a yearly toggle on the plans page that shows the monthly equivalent price and the saving.On the admin page, show monthly recurring revenue, number of active subscribers and cancellations this month.What it costs
Starting is free. Pro is $25 a month and gives you the custom domain. Card payments carry Stripe's usual processing fees plus the small Swarmz platform fee, so check them against your margins on your cheapest plan. A billing platform subscription adds a monthly fee on top, and a freelancer usually quotes for the whole project. Your own portal costs what you use, and the code syncs two-way with GitHub if a developer wants it later.
Cancel buttons, pause buttons and the maths of leaving
This is the part of a billing portal that decides if the whole thing was worth building.
Make cancel honest. If someone has decided to go, three screens of persuasion will not change that. One screen is fine: a question, a pause offer, a confirm button. People who cancel easily come back more often than people who had to fight you.
Pause is not a free trial in reverse. Decide what a paused customer keeps. Their data, yes. Access, usually not. Say it on the pause screen.
Show the end date, not "soon". "Your plan ends 14 December" prevents a dozen emails.
Annual plans need a refund rule. If someone cancels in month two of a yearly plan, what happens? Write it down and show it before they pay.
Look at past due, not only cancelled. Past due customers are often not leaving, they have a dead card. A reminder at day 1, 5 and 10 recovers some of them. Put those on your task list, not just in the app.
If you take one-off payments as well as subscriptions, the best AI app builder with payments walks through the options, and the AI app builder with a database guide explains where the subscriber records live.
More guides like this
FAQ
Can I build my own subscription billing portal without coding?
Yes. Describe your plans, the customer actions and the admin view, and Swarmz builds the portal with sign-in and a database. Card payments run through Swarmz Payments on Stripe, so you test with Stripe's test cards before going live.
Is there a free subscription billing portal?
You can start building on the free plan with 5 credits a day and no card. Taking real card payments adds Stripe's usual fees and a small Swarmz platform fee. A custom domain needs Pro at $25 a month.
Is there a subscription billing portal template?
The example in this guide is one. Paste the prompt, replace the brackets with your plans and build. You can then edit pricing, add plans or change the cancel flow with follow-up prompts.
Can customers cancel or pause on their own?
Yes, if you ask for it in the prompt. Test both paths with a test subscriber, and check the end date and the admin page update correctly.
Who handles refunds and chargebacks?
You do. Each app has its own connected Stripe account and you are the merchant of record, so refunds and chargebacks are yours. The Payments tab lets you manage refunds and payouts.
Try it
Open swarmz.net, paste the prompt, add your three plans and subscribe a test customer with a test card. If you can cancel them in two clicks, so can your customers.
How did this land?
About the author

Founder of swarmz.net
Jordan founded Swarmz, the AI app builder at swarmz.net.


