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.
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FulfillmentResult> ReportConsumableFulfillmentAsync(string productId, Guid transactionId);
function reportConsumableFulfillmentAsync(productId, transactionId)
Public Shared Function ReportConsumableFulfillmentAsync (productId As String, transactionId As Guid) As IAsyncOperation(Of FulfillmentResult)
Parameters
- productId
- String
The product ID of the consumable add-on to report as fulfilled.
- transactionId
- Guid
The transaction ID for the simulated purchase of the consumable add-on.
Returns
A FulfillmentResult value that indicates the fulfillment status for the consumable add-on.
- Attributes
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 Partner Center, 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.