Get receipt data

  • Since SDK: 1.0.0

Get receipts for all purchased folios and purchased subscriptions.

adobe.dps.store.getReceiptData

Parameter Type Description
callback

getReceiptDataFunction

Function that will be receive a dictionary of Store Product Ids -> receipt pairs in the form of {productId:receipt}. The folio product Ids can be retreived by the getFolioData() call. The receipts should be in the form the respective store server expects to receive. For subscription receipts, we only pass the receipt associated with the subscription that was most recently purchased.

getReceiptDataFunction

Parameter Type Description
dictionary

getReceiptDataResult

A dictionary containing the receipt information, as defined for a specific service.
productId

receipt

The receipt data for the given product.

API Snippet

getReceiptData

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><%= wadl_file.awsi.name %> API</title>
<script type="text/javascript">
window.onadobedpscontextloaded = loadPage;
function loadPage()
{
  // call into the getReceiptData API
  if (window.adobepscontextloaded)
  {
    adobe.dps.store.getReceiptData(function(dictionary)
      {
        alert("Product " + myProductID_1 + ": receipt " + dictionary[myProductID_1]);
        alert("Product " + myProductID_2 + ": receipt " + dictionary[myProductID_2]);
      }
    );
  }
}
</script>
</head>

<body>
</body>
</html>