Product.ShowPurchaseAsync Method

Enables the caller to initiate a purchase for an XDP-created product.

Syntax

public:
static IAsyncAction^ ShowPurchaseAsync(
         IUser^ requestingUser,
         String^ offer
)  

Parameters

requestingUser
Type: IUser 

The user making the purchase.

offer
Type: String 

 This is the SignedOffer ID returned in the SignedOffer. This is obtained from products created through XDP.

Return value

Type: IAsyncAction 

Returns an IAsyncAction object that represents the state of the asynchronous operation. Completion of the asynchronous operation is signaled by using a handler that is passed to the IAsyncAction.Completed property.

Remarks

ShowPurchaseAsync displays a UI that enables the user to complete or cancel out of a purchase flow.

This API is intended for use with the legacy Xbox Catalog and Inventory service for products created through XDP. If your product was created in the Universal Dev Center it will not have a SignedOffer by default that will work with this API. For products created in UDC you should use the StoreId value and use ShowPurchaseForStoreIdAsync.

Requirements

Namespace: Windows.Xbox.ApplicationModel.Store

Metadata: windows.winmd

See also

Reference

Product Class

Product Members

Windows.Xbox.ApplicationModel.Store Namespace