The JavaScript library for ExtensionPay.com — payments for your browser extensions, no server needed.
This release removes the requirement for manifest.json to include a content_script entry unless your extension is using the onPaid
callback. In the future even this requirement might be removed in favor of using optional permissions.
ExtPay no longer requires a host permission which means users will no longer see a scary permission check when trying to install extensions with ExtPay. This should increase installs and therefore sales.
Fixes an issue with opening the payment popup from a content script.
Supports subscription payments!
Also reorganized code to be cleaner and support some future unannounced features.
Fixes an issue with extpay.openPaymentPage()
failing in a content script.
Fixed an exception when running ExtPay in a content script.
Fixes a typo that would cause extpay initialization to error out.
Added extpay.onPaid.addListener
: add callbacks to be run after the user pays.
Note this version requires changing your manifest.json
to include a content_script. View the README for more detailed info. This is a backward-incompatible change which is why this release required a new major version bump.
Fixes a bug when trying to call extpay.getUser()
immediately after ExtPay('extension-id')
.
This release adds cross-browser compatibility using Mozilla's webextension polyfill. ExtPay now supports Chrome, Firefox, Edge, Opera, Brave, and should work with any chromium-based browser.