Quick start Introduction

Introduction

ExtensionBill adds PayPal payments, subscriptions, trials and license keys to your browser extension without a backend of your own.

ExtensionBill lets you sell one-time purchases and subscriptions inside a browser extension with PayPal, without writing or hosting server code. Trials, license keys, discount codes, receipts, refunds and a customer portal are built in.

Buyers pay your PayPal Business account directly. ExtensionBill never holds your money, and you remain the seller (see Taxes).

How it works

  1. You connect your own PayPal REST app in the dashboard and create products.
  2. Your extension ships the @extensionbill/sdk package with a publishable key (pk_test_… or pk_live_…), which is safe to include in a store build.
  3. bill.openCheckout() opens a hosted checkout page where the buyer pays with PayPal, Pay Later or a card.
  4. PayPal webhooks reach ExtensionBill, which updates the buyer’s entitlements within seconds.
  5. The SDK caches the user’s access and notifies every extension context, so bill.hasAccess(user, 'pro') unlocks the feature.

Your extension never sees card data or PayPal credentials. Sandbox and Live are fully separate environments with their own keys, credentials and data.

Where to go next

  • Quick start: a working sandbox purchase in five minutes.
  • Frameworks: copy-paste setup for React, Preact, Vue, Svelte, Angular, Solid, Lit and vanilla JS.
  • Guides: checking access, paywall UI, free trials, restore purchases, license keys, customer portal and discount codes.
  • Advanced: installation options, checkout flow, subscription lifecycle, refunds, taxes, emails, webhooks and the security model.