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
- Replace the library file. Download ExtPay.js from ExtCharge and replace your copy. The file name stays the same.
- Use the new extension ID. Register the extension in the ExtCharge dashboard, copy the ID (it looks like
my-extension-3fa9c1) and pass it toExtPay("…"). - 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.
- Adjust the CSP if you customised it. If your manifest sets a custom
content_security_policy, addconnect-src https://pay.extcharge.com. - 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.
- 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.
- 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:
- Count your paying users and list your plan types.
- Open your Stripe Dashboard, note which subscriptions and payments exist, and find out how the old provider set them up. Do not cancel anything yet.
- Email jens.laufer@solytics.de with that information. We will work out a manual plan with you.
When switching makes sense
- You need hosting in Germany. ExtCharge's servers are in Frankfurt. The data processing agreement under Art. 28 GDPR is available at extcharge.com/dpa.html.
- You are starting a new extension, or have few paying users. Then the migration costs little, and the decision is mostly about the service itself.
- You want to read the terms first. The contract, the fee and the operator are documented in the terms of service.
- You want a named contact. Support questions go to a person who runs the service, by email.
When it does not
- You have paying users and no time for a manual plan. Wait until you have room for the migration work.
- Your current setup works and Frankfurt hosting is not a requirement. Switching has a cost, and you should only pay it for a reason.
- The cost comparison favours your current provider. ExtCharge charges 5% per transaction, on top of Stripe's own processing fees. It has no monthly fee and no setup fee. Compare the total with your current provider's terms, not the headline rate.
- Your flow needs something the integration guide does not cover. Check the docs before you commit.
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.