(e)
| 616 | }); |
| 617 | |
| 618 | async function onpurchase(e) { |
| 619 | const purchase = await getPurchase(product.productId); |
| 620 | await fetch(Url.join(config.API_BASE, "plugin/order"), { |
| 621 | method: "POST", |
| 622 | body: JSON.stringify({ |
| 623 | id: remotePlugin.id, |
| 624 | token: purchase?.purchaseToken, |
| 625 | package: BuildInfo.packageName, |
| 626 | }), |
| 627 | }); |
| 628 | purchaseToken = purchase?.purchaseToken; |
| 629 | } |
| 630 | |
| 631 | async function onerror(error) { |
| 632 | throw error; |
nothing calls this directly
no test coverage detected