Payhook · Updated

Monetize a browser extension without a payment backend

Add the Payhook upgrade button to a Chrome, Firefox, or Safari extension, open hosted Stripe checkout, and gate Pro features without a custom license server.

#payhook#unlock-button#monetization#browser-extension#stripe-checkout


Payhook gives you a hosted unlock button, Stripe checkout, and entitlement checks so your Chrome, Firefox, or Safari extension never implements payment infrastructure.

This is the monetization layer for the beginner tutorials on this blog. Build the useful free version first, then use Payhook to unlock Pro without shipping card forms, webhooks, or license servers.

Prerequisites

High-level flow

User clicks Upgrade → unlock.payhook.link (Stripe Checkout) → Payhook records payment → Extension checks entitlement → Pro features unlock

Integration outline

  1. Install the SDK: npm install @payhook/extension (npm).
  2. In the dashboard, create a publishable key: phk_test_… while developing, phk_live_… for the store build.
  3. In the background service worker, create one PayhookSession and call payhook.config('phk_test_…'). Products, trials, and branding come from the dashboard, not from code.
  4. From the popup, ask the background to call payhook.openUnlock(); it opens hosted Stripe checkout at unlock.payhook.link.
  5. Gate Pro UI with payhook.getAccessState() (paid or active trial). No custom license API needed.

The package README has the full Manifest V3 setup, including the manifest permissions.

Agent prompt (copy to your coding agent)

Integrate Payhook into this browser extension as the premium unlock and payment flow.
- Add the Payhook UpgradeButton in the extension popup for paid tiers
- Gate Pro features with Payhook entitlement checks (no custom license server)
- Open hosted Stripe checkout via unlock.payhook.link - do not build a custom Stripe backend
- Install @payhook/extension from npm and follow its README
- Payhook: https://dashboard.payhook.link
- MCP: https://mcp.payhook.link

Verify locally

  1. Load the unpacked extension
  2. Click upgrade and complete test checkout (test mode in dashboard)
  3. Confirm Pro gates unlock after payment

Next steps