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

Function getPurchase

src/lib/installPlugin.js:490–494  ·  view source on GitHub ↗
(sku)

Source from the content-addressed store, hash-verified

488 await installPlugin(manifest.id, undefined, purchaseToken, true);
489
490 async function getPurchase(sku) {
491 const purchases = await helpers.promisify(iap.getPurchases);
492 const purchase = purchases.find((p) => p.productIds.includes(sku));
493 return purchase;
494 }
495}
496
497/**

Callers 4

resolveDepFunction · 0.70
onpurchaseFunction · 0.70
installPluginMethod · 0.70
onpurchaseMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected