MCPcopy Create free account
hub / github.com/ampproject/amphtml / parsePurchaseData

Function parsePurchaseData

third_party/subscriptions-project/swg.js:6202–6206  ·  view source on GitHub ↗

* @param {!Object} swgData * @return {!PurchaseData}

(swgData)

Source from the content-addressed store, hash-verified

6200 * @return {!PurchaseData}
6201 */
6202function parsePurchaseData(swgData) {
6203 const raw = swgData['purchaseData'];
6204 const signature = swgData['purchaseDataSignature'];
6205 return new PurchaseData(raw, signature);
6206}
6207
6208/**
6209 * @param {!Object} swgData

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected