this is my code in background.js :
extpay.onPaid.addListener(user => {
console.log('test internet paiement done !')
});
extpay.getUser().then(user => {
if (user.paid) {
console.log("test already paid");
} else {
console.log("test not paid");
extpay.openPaymentPage();
}
})
the openPaymentPage() is correctly done. Here are the screenshots of the process :
and then the listener is not triggered...