Enables the caller to initiate a purchase for an XDP-created product.
public:
static IAsyncAction^ ShowPurchaseAsync(
IUser^ requestingUser,
String^ offer
)
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.
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.
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.
Namespace: Windows.Xbox.ApplicationModel.Store
Metadata: windows.winmd