Product.ShowPurchaseForStoreIdAsync Method

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

Syntax

public:
static IAsyncAction^ ShowPurchaseForStoreIdAsync(
         IUser^ requestingUser,
         String^ storeId
)  

Parameters

requestingUser
Type: IUser 

The user making the purchase.

storeId
Type: String 

 This is the storeId corresponding to the product in Universal Dev Center.

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

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

This API is intended for use with products created through Universal Dev Center. If your product was created through XDP, it will not have a storeId by default that will work with this API. For products created in XDP you should use the SignedOffer value and use ShowPurchaseAsync.

Requirements

Namespace: Windows.Xbox.ApplicationModel.Store

Metadata: windows.winmd

See also

Reference

Product Class

Product Members

Windows.Xbox.ApplicationModel.Store Namespace