extension-payment
Extension Payment Integration
Integrate payment/subscription into a Chrome extension. Ask user for provider, then fetch docs and implement.
Workflow (Execute This)
Step 1: Ask user for payment requirements
Ask the user to confirm:
- Payment model: One-time purchase / Subscription / Freemium / Credits-based
- Provider category: Payment Gateway or Merchant of Record (MoR)?
- Preferred provider (or let us recommend)
- Required info: API keys, product/price IDs, webhook URL
Recommend MoR for solo/indie developers — handles tax, compliance, billing portal. No need to register as a business in every country.
Step 2: Provider selection guide
| Category | Provider | Best For | Docs |
|---|---|---|---|
| MoR | Paddle | SaaS subscriptions, global tax | https://developer.paddle.com |
| MoR | Lemon Squeezy | Indie/solo devs, simple setup | https://docs.lemonsqueezy.com |
| MoR | Polar | Open source monetization | https://docs.polar.sh |
| MoR | Creem | Extension-focused MoR | https://docs.creem.io |
| MoR | Dodo Payments | Simple digital products | https://docs.dodopayments.com |
| MoR | FastSpring | Enterprise digital commerce | https://developer.fastspring.com |
| MoR | Gumroad | Creators, digital products | https://help.gumroad.com |
| Gateway | Stripe | Full control, most flexible | https://docs.stripe.com |
| Gateway | PayPal | Wide user base, easy checkout | https://developer.paypal.com/docs |
| Gateway | Razorpay | India-focused payments | https://razorpay.com/docs |
| Gateway | Square | POS + online | https://developer.squareup.com/docs |
| Gateway | Adyen | Enterprise, multi-currency | https://docs.adyen.com |
| Gateway | Braintree | PayPal-owned, cards + PayPal | https://developer.paypal.com/braintree/docs |
| Gateway | Authorize.Net | US legacy, reliable | https://developer.authorize.net |
llms.txt for AI-assisted docs (use docs-seeker skill):
- Stripe:
https://docs.stripe.com/llms.txt - Polar:
https://docs.polar.sh/llms-full.txt
Step 3: Fetch provider docs
Use docs-seeker skill to fetch the provider's latest API docs. For Stripe/Polar, use llms.txt endpoints.
Step 4: Implement the integration
See references/integration-architecture.md for the full pattern.
Key architecture (extensions cannot run backend code):
Extension (popup/options) → Your Backend API → Payment Provider
↕ ↕
chrome.storage License/subscription DB
Step 5: Show user the post-integration workflow
After integration, show the user this flow:
User clicks "Upgrade" in extension
→ Opens payment page (provider-hosted or custom)
→ Completes payment
→ Webhook hits your backend
→ Backend validates + stores license
→ Extension checks license via API
→ Premium features unlocked
References
references/integration-architecture.md— Backend setup, license validation, webhook handlingreferences/mor-vs-gateway.md— MoR vs Gateway decision guide, tax/compliancereferences/extension-licensing-patterns.md— License key, account-based, feature flagsreferences/provider-quickstarts.md— Quick setup for top 5 providers
Related Skills
extension-publish— Store submission and listingextension-analyze— Security audit (API key exposure check)extension-dev— Feature development workflow
More from quangpl/browser-extension-skills
extension-ui
Build polished Chrome extension UIs (popup/sidepanel/options). Analyze existing UI, suggest improvements, set up design systems, enforce a11y and UX best practices.
21extension-analyze
Audit Chrome extensions for security issues, best practice violations, performance problems, and CWS compliance. Scans manifest, code, CSP, message handlers, storage, and dependencies.
20extension-create
Auto-scaffold Chrome extensions with WXT or Plasmo. Ask user for name/features, scaffold, configure entrypoints. Use when: create extension, scaffold, new extension.
19extension-manifest
Generate and validate manifest.json with optimal permissions for Chrome MV3 extensions. Analyzes code to determine minimum permissions. Use when: manifest, permissions, manifest.json.
18extension-dev
Detect Chrome extension framework/stack, find proper docs, implement features, and debug across service worker, content script, and popup contexts.
17extension-assets
Generate and manage all Chrome extension assets: icons (16–128px), CWS listing images, promotional tiles, and public/ folder setup. Supports ImageMagick, Gemini API, and manual prompt templates.
16