 const extpay = ExtPay('ureview') 


console.log('extpay content script mv3')
extpay.getUser().then(console.log)

var button = document.createElement('button')
button.innerText = 'ExtPay Payment! mv3'
button.addEventListener('click', async function(evt) {
	await extpay.openPaymentPage()
// fetch('http://localhost:3000/extension/subscription-test2/api/user?api_key=e76e8c05-8257-442f-804e-271a6123296c').then(console.log)
	
})
document.body.appendChild(button)

extpay.onPaid.addListener(function(user) {
	console.log("USER PAID CONTENT SCRIPT")
})
