MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getPurchase

Function getPurchase

src/pages/plugin/plugin.js:582–586  ·  view source on GitHub ↗
(sku)

Source from the content-addressed store, hash-verified

580 }
581
582 async function getPurchase(sku) {
583 const purchases = await helpers.promisify(iap.getPurchases);
584 const purchase = purchases.find((p) => p.productIds.includes(sku));
585 return purchase;
586 }
587}
588
589function isValidSource(source) {

Callers 2

PluginIncludeFunction · 0.70
onpurchaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected