Enables the caller to initiate a purchase for a UDC-created product.
public:
static IAsyncAction^ ShowPurchaseForStoreIdAsync(
IUser^ requestingUser,
String^ storeId
)
requestingUser
Type: IUser
The user making the purchase.
storeId
Type: String
This is the storeId corresponding to the product in Universal Dev Center.
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.
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.
Namespace: Windows.Xbox.ApplicationModel.Store
Metadata: windows.winmd