CurrentApp.GetProductReceiptAsync(String) CurrentApp.GetProductReceiptAsync(String) CurrentApp.GetProductReceiptAsync(String) CurrentApp.GetProductReceiptAsync(String) CurrentApp.GetProductReceiptAsync(String) Method

Definition

Requests the receipt for the specified product ID. For examples of how receipt information can be used, see Using receipts to verify product purchases.

public : static IAsyncOperation<Platform::String> GetProductReceiptAsync(Platform::String productId)
static IAsyncOperation<winrt::hstring> GetProductReceiptAsync(winrt::hstring productId) const;
public static IAsyncOperation<string> GetProductReceiptAsync(String productId)
Public Shared Function GetProductReceiptAsync(productId As String) As IAsyncOperation(Of string)
Windows.ApplicationModel.Store.CurrentApp.getProductReceiptAsync(productId).done( /* Your success and error handlers */ );

Parameters

productId
String String String

The unique identifier for the product that you specified this identifier when you submitted the app to the Microsoft Store

Returns

An XML-formatted string that contains the receipt for the specified productId.

Remarks

For more information about the contents of the receipt, see Using receipts to verify product purchases.