PDL_GetItemInfo

Returns information about a specific purchase item, including whether or not the user has already purchased it.

This call is a wrapper for a getItemInfo com.palm.service.payment call and returns the same response.

Note

PDL_ItemInfo is an opaque type that your code cannot directly access. You need to call PDL_GetItemJSON to turn the response into a JSON-formatted string.

The getItemInfo call takes 3 parameters:

  • itemId -- Item ID, i.e. "gamelevel101". 64 characters maximum.
  • includeReceipts -- Include receipts with items flag.
  • maxReceipts -- Maximum number of receipts to return. Limit of 16.

The PDK sets includeReceipts to true and maxReceipts to 16 when calling getItemInfo.

Syntax

PDL_ItemInfo *PDL_GetItemInfo(const char *itemID);

Parameters

Parameter
Required Type Description
itemID
Yes Pointer Pointer to item ID string.

Returns

Pointer to PDL_ItemInfo struct.