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

Method getPurchase

src/lib/acode.js:637–643  ·  view source on GitHub ↗
(sku)

Source from the content-addressed store, hash-verified

635 });
636
637 async function getPurchase(sku) {
638 const purchases = await helpers.promisify(iap.getPurchases);
639 const purchase = purchases.find((p) =>
640 p.productIds.includes(sku),
641 );
642 return purchase;
643 }
644 });
645 })
646 .catch((error) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected