Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.92 KB

currentapp_requestproductpurchaseasync_1934617021.md

File metadata and controls

34 lines (24 loc) · 1.92 KB
-api-id -api-type
M:Windows.ApplicationModel.Store.CurrentApp.RequestProductPurchaseAsync(System.String,System.String,Windows.ApplicationModel.Store.ProductPurchaseDisplayProperties)
winrt method

Windows.ApplicationModel.Store.CurrentApp.RequestProductPurchaseAsync

-description

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. This overload includes parameters you can use to display details for a specific offer within a large catalog of in-app purchases that is represented by a single product entry in the Store.

-parameters

-param productId

The product ID of the add-on to purchase.

-param offerId

The specific in-app feature or content within the large purchase catalog represented on the Microsoft Store by the productId. This value correlates with the content your app is responsible for fulfilling. The Microsoft Store only uses this value to itemize the PurchaseResults.

-param displayProperties

The name of the app feature or content offer that is displayed to the user at time of purchase.

-returns

A PurchaseResults that contains the results of the in-app product purchase request.

-remarks

The remarks for RequestProductPurchaseAsync(String) also apply to this overload.

-examples

-see-also

RequestProductPurchaseAsync(String), RequestProductPurchaseAsync(String, Boolean)