Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.58 KB

currentapp_requestproductpurchaseasync_1631257175.md

File metadata and controls

36 lines (25 loc) · 1.58 KB
-api-id -api-type
M:Windows.ApplicationModel.Store.CurrentApp.RequestProductPurchaseAsync(System.String,System.Boolean)
winrt method

Windows.ApplicationModel.Store.CurrentApp.RequestProductPurchaseAsync

-description

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.

-parameters

-param productId

The product ID of the add-on to purchase.

-param includeReceipt

Determines if the method should return the receipts for the specified productId.

-returns

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.

-remarks

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.

-examples

-see-also

RequestProductPurchaseAsync(String)