Choose a self-service approach
Compare Bunny's ways to let customers sign up, pay invoices and manage subscriptions themselves: the standalone portal, popup portal, hosted Signup and Checkout pages, and React components.
Bunny gives customers two kinds of self-service:
- Existing customers pay invoices, update their payment method, and upgrade, downgrade or cancel their subscriptions.
- New customers sign up for a plan and pay without anyone in your team being involved.
For each, you can send customers to a page Bunny hosts, or build the screens into your own app. The hosted pages are built from the same components you can embed, so you can start with a hosted page and move to components later without changing your catalog or subscriptions.
Existing customersLink to Existing customers section
| Standalone portal | Popup portal | Bunny Components | |
|---|---|---|---|
| What the customer sees | Bunny’s portal in its own tab or page | Bunny’s portal in a popup over your app | Billing screens inside your app’s own pages |
| What you build | A link that your server fills in with a token | A button that opens the popup, plus the bunny.js script |
React components in your app |
| Frontend requirements | None | Any web app that can load a script | React 18 and the package’s peer dependencies |
| Look and feel | Your logo and brand colors, from portal branding | Your logo and brand colors, from portal branding | Fully restyled with the appearance prop |
| Token | Portal session token | Portal session token | Portal session token |
| Setup in Bunny | None | None | Whitelist your app’s domains |
| Guide | Standalone customer portal | Popup customer portal | Components overview |
| Components to use | <Subscriptions />, <BillingDetails />, <Invoices /> or <Transactions />, and <Quotes /> |
All three need a portal session token (see Authentication), created on your server for the signed-in customer’s tenant. The token gives access to that one account and expires after at most 24 hours, so create it when the customer opens billing rather than storing it.
To send an existing customer straight to buying one plan, use the hosted Checkout page or the <Checkout /> component. Both use the same portal session token. Checkout offers every payment method enabled in your Stripe account, including bank debits such as SEPA Direct Debit, which signup doesn’t.
New customersLink to New customers section
| Signup page | <Signup /> component |
|
|---|---|---|
| What the customer sees | A Bunny-hosted signup page for one price list | A signup form on your website |
| What you build | A link with the price list code and a token | A React component on your signup page |
| Token | An API client token with only the signup:read and signup:write scopes |
The same |
| Payment methods | Cards only, when an amount is due | Cards only, when an amount is due |
| Guide | Signup page | <Signup /> |
The signup token can be in a public page because it can do nothing but sign up. Never use an API client with any other scope for signup.
If you’d rather create the account yourself, for example when the customer signs up inside your app, call subscriptionCreate from your server instead. See the Quickstart.
Which one to useLink to Which one to use section
| If you want to… | Use |
|---|---|
| Let customers pay and manage billing with the least work | The standalone portal: one link from your app’s settings |
| Keep customers in your app, without building billing screens | The popup portal |
| Make billing look and feel like the rest of your React app | Bunny Components |
| Let an existing customer buy or upgrade to one plan | The Checkout page, or <Checkout /> in a React app |
| Let anyone sign up from your website | The Signup page, or <Signup /> in a React app |
| Create subscriptions from your own signup flow | subscriptionCreate from your server |
You can combine them. A common setup is the Signup page for new customers and the standalone portal for existing ones, then components later for the screens customers use most.