CurrentAppSimulator.ReportConsumableFulfillmentAsync(String, Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<FulfillmentResult> ReportConsumableFulfillmentAsync(winrt::hstring const& productId, winrt::guid const& transactionId);
[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
Platform::String
winrt::hstring
The product ID of the consumable add-on to report as fulfilled.
- transactionId
-
Guid
Platform::Guid
winrt::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.