WebIDLpedia

DigitalGoodsService interface

Definition

Digital Goods API defines DigitalGoodsService



[Exposed=Window, SecureContext] interface DigitalGoodsService {

  Promise<sequence<ItemDetails>> getDetails(sequence<DOMString> itemIds);

  Promise<sequence<PurchaseDetails>> listPurchases();

  Promise<sequence<PurchaseDetails>> listPurchaseHistory();

  Promise<undefined> consume(DOMString purchaseToken);
};

Methods and attributes that return objects implementing DigitalGoodsService

Referring IDL interfaces/dictionaries