extcharge

Blog

Moving from ExtensionPay to ExtCharge: what changes

1 December 2026

If your Chrome extension takes payments through ExtensionPay, you may be looking at ExtCharge. This article covers what stays the same, what changes in your code, what does not move by itself, and when switching is the right call. It is written for developers who already use ExtPay.js and have to decide.

ExtensionPay is a good project

ExtensionPay gives extension developers a way to take payments without building a backend. Its client library, ExtPay.js, is open source, and its API is small enough to learn quickly. If your extension works and your paying users are happy, there is no urgent reason to change anything. This article is not an argument that ExtensionPay is bad. It is a list of the differences that matter when you choose a provider.

Where ExtCharge comes from

ExtCharge's client is a fork of ExtPay.js 3.1.3, the open-source library originally written by Glen Chiacchieri. It is licensed under LGPL-3.0, and the NOTICE file in the download package carries the original notices. The hosted service is a separate product, operated by Solytics GmbH in Germany.

What stays the same

The calls in your extension do not change: getUser(), getPlans(), openPaymentPage(), openTrialPage(), openLoginPage(), and the onPaid and onTrialStarted listeners. The API is identical to ExtPay.js 3.1.3, so code written against that API keeps working. On ExtCharge, payments run on your own Stripe account, connected through Stripe Connect, and the service never holds the money.

What changes in the code

  1. Replace the library file. Download ExtPay.js from ExtCharge and replace your copy. The file name stays the same.
  2. Use the new extension ID. Register the extension in the ExtCharge dashboard, copy the ID (it looks like my-extension-3fa9c1) and pass it to ExtPay("…").
  3. Change the content-script match. The library needs a content script on the payment domain. Point the match at ExtCharge, as in the diff below.
  4. Adjust the CSP if you customised it. If your manifest sets a custom content_security_policy, add connect-src https://pay.extcharge.com.
  5. Recreate your plans. Add plan names, prices, currencies and billing intervals in the ExtCharge dashboard. They are configured there, not carried over from your old provider.
  6. Test before you ship. Load the extension unpacked, register it, paste the ID, buy a cheap one-time plan yourself, and refund it in your Stripe Dashboard. After the refund, the popup should show the free state again.
  7. Ship a store update. Users on the old version keep the old flow until they update.

The manifest change is one line:

{
  "manifest_version": 3,
  "background": { "service_worker": "background.js" },
  "permissions": ["storage"],
  "content_scripts": [{
-   "matches": ["https://extensionpay.com/*"],
+   "matches": ["https://pay.extcharge.com/*"],
    "js": ["ExtPay.js"],
    "run_at": "document_start"
  }]
}

And the ID changes in background.js and wherever else you call ExtPay():

-const extpay = ExtPay("your-old-extension-id");
+const extpay = ExtPay("your-extcharge-extension-id");

The part that does not move by itself: existing paying users

Read this section before you change anything.

Purchases live with the provider that recorded them. ExtCharge does not import records from ExtensionPay, and nothing in the library moves an old entitlement to the new service. After you ship the ExtCharge version, a customer who paid through the old provider will see the free state unless you plan for them.

What ExtCharge offers today: customers who buy through ExtCharge can confirm their email with openLoginPage() and get their purchase on another device. That covers purchases made through ExtCharge only.

What it does not cover is moving your existing subscribers, and their entitlement records, from the old provider. That needs manual steps, and we do not promise an automatic migration. Before you switch:

When switching makes sense

When it does not

A note on data location

Frankfurt hosting does not mean that no data leaves the EU. Transactional emails from ExtCharge are sent through Amazon SES, which operates in the USA. Stripe, which processes the payments on your account, has its own data transfer terms. Check where your analytics, hosting and other tools run as well. Do not describe your product as free of US data transfers unless you have verified each step.

The short version

The code change is small: a library file, an ID, a content-script match and a store update. The decision is larger, because it is about your existing paying users. Make that decision first, then change the code.

Test the switch on a cheap plan

Register your extension, add a one-time plan, buy it yourself and refund it. The steps are in the dashboard and the integration guide.