How to sell Chrome extension subscriptions
Monthly, yearly or lifetime? How to price Chrome extension subscriptions, handle every subscription state, check access offline and let users cancel.
Chrome extension subscriptions are more than a checkout with a recurring price. Once someone subscribes, their subscription moves through states: a free trial, renewals, a failed card, a cancellation that still has three weeks of paid time left. Your extension has to show the right thing in each one, keep working when the user is offline, and give them a way to cancel without emailing you.
This guide covers the decisions and the code: choosing between monthly, yearly and lifetime, what to do in each subscription state, checking access offline, self-service cancellation, and turning a free trial into a subscription. The examples use ExtensionBill, which runs recurring payments for browser extensions on PayPal with no backend. If you haven’t wired up payments yet, start with how to add payments to a Chrome extension.
One-time vs subscription extension pricing
Before any code, decide what you’re selling. ExtensionBill supports both models, and you can offer them side by side on the same product.
- Lifetime (one-time). Pay once, keep access. Simple to explain and easy for users who distrust recurring charges. It fits utilities that don’t cost you anything per user after the sale. A one-time price can also grant limited time access, for example 365 days, if you want a pass rather than a lifetime license.
- Monthly subscription. The lowest entry price and the easiest yes. Fits extensions with ongoing costs (API calls, sync, AI features) or a stream of new features.
- Yearly subscription. Usually priced below twelve months of the monthly plan. You get the revenue up front and fewer chances for a renewal to fail.
A common setup is monthly + yearly, with or without a lifetime option. In the
dashboard under Sell → Products, an empty product list offers templates for
exactly these: Lifetime access, Monthly + yearly and Monthly with free
trial. Subscription intervals can be day, week, month or year, with
Bill every for multiples such as quarterly (every 3 months).
The important detail is the entitlement key. Put the monthly, yearly and
lifetime prices on the same product (say, “Pro” with the key pro) and every
buyer gets the same key, however they paid. Your code checks the capability,
not the price:
if (bill.hasAccess(user, 'pro')) enableProFeatures()
That keeps your gating code unchanged when you add a plan later. For the wider choice between freemium, one-time and recurring, see How to Monetize a Chrome Extension in 2026. Field-by-field details are in Products & pricing.
How recurring payments work in a Chrome extension
Each subscription price becomes a PayPal billing plan in your own PayPal account. PayPal charges on schedule; ExtensionBill follows PayPal’s webhooks, keeps a subscription record in sync and turns it into an entitlement that the SDK reads. There’s no server for you to run.
Opening checkout for a subscription is the same call as for a one-time purchase. With no argument, the hosted plan picker lists all active prices; with a price ID, it goes straight to that plan:
// popup.js
import { bill } from './bill.js'
document.querySelector('#upgrade').addEventListener('click', async () => {
const { plans } = await bill.getPlans()
const pro = plans.find((plan) => plan.entitlementKey === 'pro')
const yearly = pro?.prices.find((price) => price.interval === 'year')
await bill.openCheckout(yearly?.id) // undefined opens the plan picker
})
The buyer approves the subscription with a PayPal Subscribe button. On
approval it activates, the entitlement is granted, and bill.onChange fires in
every open context of your extension.
Subscription states and what your extension should do
A subscription for a browser extension has six statuses. This table, from Subscription lifecycle, is what each one means for access:
| Status | What it means | Access | What to show |
|---|---|---|---|
approval_pending | Checkout started, not yet approved in PayPal | None | Nothing special; keep the upgrade button |
active | Billing normally, including during a free trial | Granted (until cancelAt if a cancellation is scheduled) | “Renews on…”, or “Free trial until…” |
past_due | A renewal failed; PayPal keeps retrying | Kept for the grace period (graceDays, default 7), then ends | ”Payment failed” and a Fix payment button |
suspended | Paused, or suspended by PayPal after too many failures | Off | ”Subscription paused” |
canceled | Future billing stopped | Until cancelAt, the end of the paid period | ”Ends on…” |
expired | The plan completed | None | ”Subscription ended” and a way to subscribe again |
canceled and expired are final. A canceled PayPal subscription can’t be
restarted, so a returning customer starts a new checkout: your paywall can just
call bill.openCheckout() again.
Gate on access, message on status
The rule that keeps this simple: never gate features on
user.subscription.status. Use bill.hasAccess(), which already accounts
for grace periods, scheduled cancellations and trials. Use subscription only
for the status line and the buttons around it.
A few cases show why:
- A user who canceled mid-month has status
canceledbutpaid: trueuntilcancelAt. Locking them out oncanceledwould take away time they paid for. - A user whose card failed is
past_duebut keeps access for the grace period. Telling them, with a button to fix it, recovers revenue that PayPal’s retries miss. - Once the grace period runs out, the status may still read
past_due,suspendedorcanceled, butpaidisfalseandhasAccessreturnsfalse.
Here is a status line that covers every case, adapted from the docs:
// popup.js
import { bill } from './bill.js'
const formatDate = (iso) => new Date(iso).toLocaleDateString()
function subscriptionLine(user) {
const sub = user.subscription
if (!sub) return ''
switch (sub.status) {
case 'active':
if (sub.cancelAt) return `Ends on ${formatDate(sub.cancelAt)}`
if (sub.trialEndsAt && new Date(sub.trialEndsAt) > new Date()) {
return `Free trial until ${formatDate(sub.trialEndsAt)}`
}
return sub.currentPeriodEnd ? `Renews on ${formatDate(sub.currentPeriodEnd)}` : 'Active'
case 'past_due':
return 'Payment failed. Update your payment method in PayPal to keep access.'
case 'canceled':
return sub.cancelAt && new Date(sub.cancelAt) > new Date()
? `Ends on ${formatDate(sub.cancelAt)}`
: 'Subscription ended'
case 'suspended':
return 'Subscription paused'
case 'expired':
return 'Subscription ended'
default:
return ''
}
}
function render(user) {
document.querySelector('#pro-features').hidden = !bill.hasAccess(user, 'pro')
document.querySelector('#plan').textContent = user.plan?.name ?? 'Free'
document.querySelector('#subscription').textContent = subscriptionLine(user)
const manage = document.querySelector('#manage')
manage.hidden = !user.subscription
manage.textContent = user.subscription?.status === 'past_due' ? 'Fix payment' : 'Manage subscription'
}
document.querySelector('#manage').addEventListener('click', () => bill.openPortal())
render(await bill.getUser())
bill.onChange(render)
bill.onChange fires on purchase, renewal, cancellation, refund and the end of
a trial, in every context that registered it, so the popup, options page and
content scripts all update together.
Failed payments and dunning
When a renewal fails, the subscription becomes past_due and the customer gets
a payment-failed email linking to their PayPal automatic payments page and to
your customer portal. PayPal retries on its own schedule; a later success moves
it back to active. If failures reach your threshold (failureThreshold, 1 to
3, default 3, set in Settings → Checkout), PayPal suspends or cancels the
subscription, and access ends when the grace period runs out. You can also click
Retry outstanding balance on the subscription in the dashboard to charge the
outstanding amount right away.
Checking subscription access offline
Extensions run on laptops on trains. The SDK caches the last user state in
chrome.storage.local, so getUser() and hasAccess() keep working without a
connection:
getUser()returns the cached state when it’s under 5 minutes old, and also when the API can’t be reached.- Each state carries a signed entitlement token that expires 72 hours after the last successful check. That’s the offline grace period: a subscriber who goes offline keeps access for up to 72 hours.
- After that,
hasAccess()returnsfalseuntil the extension is back online. Editingchrome.storage.localby hand can’t unlock features, because a forged state fails signature verification.
If you declare the alarms permission, bill.startBackground() also refreshes
the state every 6 hours, so renewals and cancellations reach the extension even
when the popup is never opened. More in
Checking access.
One caveat: anything in an extension can be patched out of its own code. That’s fine for UI features. If your subscription pays for a server feature, such as an AI endpoint, check access on your server with the install ID and the Server API, as shown in server-side features.
Letting users cancel and manage their subscription
A “Manage subscription” button that opens the hosted customer portal saves you most billing support email:
// options.js
import { bill } from './bill.js'
const manage = document.getElementById('manage-billing')
manage.addEventListener('click', () => bill.openPortal())
function render(user) {
manage.hidden = !user.customer // only installs linked to a buyer
}
render(await bill.getUser())
bill.onChange(render)
In the portal, buyers see the next billing date and their receipts (including every renewal), cancel, change plan (for example monthly to yearly), and pause or resume if you allow it. Under Settings → Checkout, Allow cancel and Allow plan change are on by default; Allow pause is off by default.
When a buyer cancels, ExtensionBill cancels the subscription in PayPal, sets
user.subscription.cancelAt to the end of the current period and keeps
user.paid true until then. On that date access ends and bill.onChange fires.
A plan change goes through PayPal’s revise flow: if PayPal needs the buyer to
approve the new amount, the portal sends them there, and access stays on the
current plan until PayPal confirms. Switching between a subscription and a
one-time price isn’t a plan change; it takes a new checkout.
For plans billed every 3 months or more, customers also get a renewal reminder email 7 days before renewal, with a link to the portal. It’s on by default under Settings → Emails.
From free trial to subscription
There are two ways to put a trial in front of a recurring plan, and you can use both:
| Install trial | Subscription trial | |
|---|---|---|
| Payment details up front | No | Yes, PayPal wallet or card |
| Started by | Your code: bill.startTrial() | The buyer approving a subscription |
| Converts to paid | Only if the user subscribes | Automatically, on the first billing date |
| Shows up in | user.trial | user.subscription.trialEndsAt |
A subscription trial is set per recurring price (Free trial (days)).
It becomes a zero-priced trial cycle on the PayPal plan: the subscription is
active with full access, paid is true, and trialEndsAt is the first
charge date. If the user cancels in the portal before then, they aren’t
charged.
An install trial needs no payment method. Show the button only when
user.trial.available is true, then send the user to checkout when it ends:
// popup.js
import { bill } from './bill.js'
const trialBtn = document.getElementById('start-trial')
const upgradeBtn = document.getElementById('upgrade')
function render(user) {
trialBtn.hidden = user.paid || !user.trial.available
upgradeBtn.hidden = user.paid
upgradeBtn.textContent = user.trial.active
? `Subscribe (${user.trial.daysLeft} days left in trial)`
: 'Subscribe'
}
trialBtn.addEventListener('click', () => bill.startTrial())
upgradeBtn.addEventListener('click', () => bill.openCheckout())
render(await bill.getUser())
bill.onChange(render)
During an install trial hasAccess() returns true for every feature while
user.paid stays false, so the same hasAccess gate works before and after
the user subscribes. Choosing between the two models, and where trials go wrong,
is covered in how to add a free trial to your Chrome extension
and in Free trials.
Checklist before you launch subscriptions
- Put monthly, yearly and lifetime prices on one product with one entitlement key.
- Gate every feature with
bill.hasAccess(), never withsubscription.status. - Show a status line and a Manage subscription / Fix payment button
that calls
bill.openPortal(). - Add the
alarmspermission so state refreshes in the background. - Test the lifecycle in sandbox: subscribe, cancel from the portal, and check
that access lasts until
cancelAt. See Testing in sandbox.
Building this yourself on Stripe or PayPal means handling their subscription webhooks, storing state somewhere, and building a cancel page. With ExtensionBill, subscriptions run on PayPal billing plans in your own account and the SDK handles the rest. Every method used above is listed in the SDK reference.