Products & pricing
Create products and one-time or subscription prices in the dashboard, and keep them in sync with PayPal in each environment.
A product is what the buyer gets (for example “Pro”). A price is how they pay for it (for example $29 once, or $4.99 a month). Products and prices are shared by Sandbox and Live; each environment gets its own PayPal copy.
Create a product
-
Open Products. In the dashboard, go to Sell → Products and click New product. On an empty list you can also start from a template: Lifetime access, Monthly + yearly or Monthly with free trial.
-
Fill in the details. Enter a Name (for example “Pro”) and an Entitlement key (for example
pro). Optionally add a description and features for the paywall. -
Add a price. Under Prices, click Add price. Choose One-time or Subscription, enter the Amount and Currency, and for subscriptions the billing interval. The What the buyer sees preview shows the result.
-
Create it. Click Create product. Subscription prices are created as PayPal billing plans in every connected environment.
-
Copy the entitlement key. Use the product’s menu → Copy entitlement key. This is the string your extension checks:
if (bill.hasAccess(user, 'pro')) enableProFeatures()
See Checking access for the full pattern.
Product fields
| Field | What it does |
|---|---|
| Name | Shown on checkout, the paywall, receipts, in PayPal and in user.plan.name. |
| Description | Optional short text on the paywall, the plan picker and in PayPal. |
| Features | One benefit per line, shown as a checklist on the paywall and plan picker. |
| Entitlement key | Lowercase letters and numbers, separated by - or _, max 40 characters, unique within the app. Your code checks it. |
| Highlight this product | Marks it as the recommended plan on the paywall and plan picker. |
| Position on the paywall | Order on the paywall and plan picker; reorder with the arrows. If a user owns several products, the one lowest in the list is reported as user.plan. |
| One-time purchase access | Lifetime, or Limited time with an access length in days. Also sets how long license keys stay valid. Subscriptions grant access while they are active. |
| Issue license keys | Email buyers a key they can activate on other browsers and devices, with a device limit (default 3). See License keys. |
Entitlement keys
When a buyer pays, ExtensionBill grants an entitlement for the product’s key. The SDK exposes active keys in user.entitlements, and bill.hasAccess(user, key) checks them.
Choose keys that describe capabilities, not prices: the yearly and lifetime buyers of the same product get the same key. Keep keys stable. Changing a key does not rename entitlements already granted, so code that checks the old key stops matching them.
Archive a product
Products are never deleted, because orders, subscriptions and entitlements refer to them. Use the product’s menu → Archive. Archived products disappear from bill.getPlans(), the paywall and the plan picker, and nobody new can buy them. Existing buyers keep their entitlements and existing subscriptions keep renewing. Find them under the Archived view and click Unarchive to bring one back.
Price fields
| Field | Applies to | Notes |
|---|---|---|
| Type | All | One-time (one_time): pay once, access per the product’s one-time access setting. Subscription (recurring): PayPal bills until canceled; see Subscription lifecycle. |
| Amount | All | Entered as a normal amount in the dashboard, stored as an integer in minor units. |
| Currency | All | Uppercase ISO code, one per price. |
| Billing interval | Subscription | day, week, month or year. |
| Bill every | Subscription | Bill every N intervals, for example 3 months for quarterly. Defaults to 1. |
| Free trial (days) | Subscription | Free period before the first charge, as a PayPal trial cycle priced at 0. |
| Setup fee | Subscription | Optional one-time charge at signup, on top of the first payment. |
| Nickname | All | Optional label shown in the plan picker, for example “Yearly · save 20%”. Returned as nickname. |
| Active | All | Inactive prices are hidden from new buyers. Existing subscribers and past purchases keep access. |
A subscription with a free trial still needs the buyer to approve it in PayPal up front; PayPal charges when the trial ends. An install-based trial started with bill.startTrial() needs no payment method at all. See Free trials to choose.
Amounts and minor units
The SDK, the Server API and Webhooks return amounts as integers in the currency’s minor units:
| Price | amount | currency |
|---|---|---|
| $4.99 | 499 | USD |
| €29.00 | 2900 | EUR |
| ¥500 | 500 | JPY |
| 1,990 Ft | 1990 | HUF |
| NT$150 | 150 | TWD |
JPY, HUF and TWD are zero-decimal in PayPal, so their amounts have no cents. For display, use the ready-made formatted string on each price (for example "$4.99 / month"). Full types: getPlans().
Multiple currencies
A price has one currency. To sell in several, add one price per currency to the same product; all grant the same entitlement key.
With no price ID, the hosted plan picker lists every active price. To send buyers straight to their currency, pick the price and pass its ID to bill.openCheckout():
// popup.js
import { bill } from './bill.js'
const preferred = navigator.language.startsWith('en-US') ? 'USD' : 'EUR'
document.getElementById('upgrade').addEventListener('click', async () => {
const { plans } = await bill.getPlans()
const pro = plans.find((plan) => plan.entitlementKey === 'pro')
const monthly = pro?.prices.find(
(price) => price.interval === 'month' && price.currency === preferred,
)
await bill.openCheckout(monthly?.id)
})
If nothing matches, monthly?.id is undefined and the plan picker opens. PayPal settles each payment in the price’s currency; conversion into your balance follows your PayPal account’s currency settings.
Editing prices
You can change a price’s amount, nickname and active flag. Type, currency, interval, interval count, trial and setup fee are fixed once the price exists: add a new price and deactivate the old one instead.
- One-time prices: a new amount applies to new purchases only. Past orders keep what they paid.
- Subscription prices: ExtensionBill updates the PayPal billing plan in every connected environment, and existing subscribers are charged the new amount from their next billing cycle, following PayPal’s rules for price changes, including notifying subscribers. To keep existing subscribers on the old price, add a new price and deactivate the old one instead.
Every price change is recorded in Developers → Audit log.
PayPal sync
For each connected environment, ExtensionBill mirrors your catalog in PayPal (how PayPal subscriptions work):
- each product with subscription prices becomes a PayPal catalog product (category software);
- each subscription price becomes a PayPal billing plan with its interval, trial, setup fee, your app’s tax percentage and payment-failure settings;
- one-time prices stay on ExtensionBill; each purchase creates a PayPal order with the amount computed on the server.
Sync runs when you create or edit products and prices, and when you connect PayPal for an environment. Each product shows a sync status per environment:
| Status | Meaning |
|---|---|
synced | PayPal has the catalog product and an active plan for every active subscription price. |
pending | A change hasn’t reached PayPal yet. |
error | PayPal rejected the last sync. The PayPal error is shown on the product. |
not_connected | That environment has no PayPal credentials. Connect them in Settings → PayPal. |
not_required | One-time prices only; nothing is needed in PayPal. |
Click Sync now on a product to push it again, for example after fixing a PayPal error. Prices that can’t be synced can’t be bought in that environment.
Related settings
- Tax percentage: optional, per app, inclusive or exclusive, applied to one-time orders and subscription plans. See Taxes.
- Discounts: percentage or fixed codes for some or all prices. See Discount codes.
- Install-based trials: configured per app, independent of prices. See Free trials.