CurrentAppSimulator.ReportConsumableFulfillmentAsync(String, Guid) CurrentAppSimulator.ReportConsumableFulfillmentAsync(String, Guid) CurrentAppSimulator.ReportConsumableFulfillmentAsync(String, Guid) CurrentAppSimulator.ReportConsumableFulfillmentAsync(String, Guid) CurrentAppSimulator.ReportConsumableFulfillmentAsync(String, Guid) Method

Definition

Simulates notifying the Microsoft Store that the purchase of a consumable add-on (also called an in-app product or IAP) is fulfilled and that the user has the right to access the content.

public : static IAsyncOperation<FulfillmentResult> ReportConsumableFulfillmentAsync(Platform::String productId, Platform::Guid transactionId)
static IAsyncOperation<FulfillmentResult> ReportConsumableFulfillmentAsync(winrt::hstring productId, Guid transactionId) const;
public static IAsyncOperation<FulfillmentResult> ReportConsumableFulfillmentAsync(String productId, Guid transactionId)
Public Shared Function ReportConsumableFulfillmentAsync(productId As String, transactionId As Guid) As IAsyncOperation(Of FulfillmentResult)
Windows.ApplicationModel.Store.CurrentAppSimulator.reportConsumableFulfillmentAsync(productId, transactionId).done( /* Your success and error handlers */ );
Parameters
productId
String String String

The product ID of the consumable add-on to report as fulfilled.

transactionId
Guid Guid Guid

The transaction ID for the simulated purchase of the consumable add-on.

Returns

Remarks

The product ID is the string that the app uses to identify the add-on. You enter the product ID when submitting your add-on in the Windows Dev Center dashboard, where it is associated with the description, price tier and lifetime. For more information, see How to use product IDs for add-ons in your code.

A unique transaction ID is required for each instance of a consumable product that has been purchased more than once.