Skip to content

Commit

Permalink
clarif PurchaseDetails list
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehoffms committed Dec 19, 2024
1 parent cf155f2 commit e7192dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ See also:
<!-- ====================================================================== -->
## Getting the purchase history (`listPurchaseHistory` method)

Use the `listPurchaseHistory` method of the `DigitalGoodsService` interface to get the purchase history. This method returns a list that shows the most recent purchase made by the user for each item, regardless of whether the purchase is expired, canceled, or consumed. This method returns a list of `PurchaseDetails` containing the `itemId` and `purchaseToken` for each purchase.
Use the `listPurchaseHistory` method of the `DigitalGoodsService` interface to get the purchase history.

This method returns a list of `PurchaseDetails` containing the `itemId` and `purchaseToken` for each purchase. The list includes the most recent purchase made by the user for each item, regardless of whether the purchase is expired, canceled, or consumed.

```javascript
const purchaseList = await digitalGoodsService.listPurchaseHistory();
Expand Down

0 comments on commit e7192dc

Please sign in to comment.