Closed bluecaret closed 2 years ago
I just tested this in production mode as well and still didn't get the response expected.
Got it working. Using NPM didn't work, I had to copy ExtPay.js directly into my project despite using rollup. I also had to run the listener in the background script, not the new tab page.
Describe the bug I have the following code in my extension to listen to the onPaid event but nothing happens when onPaid should trigger. Following the instructions, I am uninstalling the extension, and "paying" with the development login, but my listener never logs anything. The only thing to happen is ExtPay logging this message:
service worker got message! Here it is: fetch-user
. I have no idea how to debug this further.Manifest setting:
Per the documentation I added the file lib/ExtPay_content_script.js with the following
In this file I also tried doing
import ExtPay from "extpay";
just in case but same result.To Reproduce Steps to reproduce the behavior:
Expected behavior I'm expecting my console log to show in the open new tab that I triggered the payment in.
Desktop (please complete the following information):