-api-id | -api-type |
---|---|
M:Windows.ApplicationModel.Store.CurrentApp.RequestProductPurchaseAsync(System.String,System.Boolean) |
winrt method |
Note
[RequestProductPurchaseAsync(String, Boolean) may be altered or unavailable for releases after Windows 8.1. Instead, use RequestProductPurchaseAsync(String).
Requests the purchase of an add-on (also called an in-app product or IAP). Additionally, calling this method displays the UI that is used to complete the transaction via the Microsoft Store.
The product ID of the add-on to purchase.
Determines if the method should return the receipts for the specified productId.
A string providing in-app transaction details for the provided productId. If includeReceipt is set true, the returned string will include a full receipt xml.
The remarks for RequestProductPurchaseAsync(String) also apply to this overload.
To confirm whether the product license is active after a successful call to this overload, use the LicenseInformation.IsActive property.