Glench / ExtPay

The JavaScript library for ExtensionPay.com — payments for your browser extensions, no server needed.
https://extensionpay.com
Other
483 stars 62 forks source link

Error: User doesn't match extension. Are you sure you're using the right extension id in all places? #116

Closed Nodirbek3d closed 1 year ago

Nodirbek3d commented 1 year ago

Describe the bug I have created an extension with id gpt-assistant and when I use it, getting this error on payment page:

Error: User doesn't match extension. Are you sure you're using the right extension id in all places?

To Reproduce

importScripts('./lib/ExtPay.js')

// background.js
const extpay = ExtPay('gpt-assistant')
extpay.startBackground();
extpay.getUser().then(user => {
    if (user.paid) {
        // ...
    } else {
        extpay.openPaymentPage()
    }
})

Desktop (please complete the following information):

Glench commented 1 year ago

When you change the extension id you have to remove and re-add your extension in chrome.