CurrentApp.ReportProductFulfillment method only for consumable in app purchase RRS feed

  • Question

  • Hi,

                     Currently I'm working in Inapp Purcahse. Previously I did Consumable InApp Purchase for our Application. It works fine. I used CurrentApp.ReportProductFulfillment method  after the product purchase.

    My doubt is how to give acknowledge to store for Durable product. I have to use same CurrentApp.ReportProductFulfillment method for Durable product.

    here is my code Correct me if I'm wrong.

    // Durable Purchase
                    // Initial check for the product is already owned or not
                    ProductLicense license = CurrentApp.LicenseInformation.ProductLicenses[packName];
                        await CurrentApp.RequestProductPurchaseAsync(packName, false);
                        ProductLicense productLicense = null;
                        if (CurrentApp.LicenseInformation.ProductLicenses.TryGetValue(packName, out productLicense))
                            if (productLicense.IsActive)
                                // Purchase error
                        // Alredy owned the app Popup

    Monday, August 17, 2015 10:37 AM


  • Hello Seven,


    Welcome to the Developing Universal Windows apps forum! 

    Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools .

    We don’t know your project type so please add tags to your title to make the question clear.

    Here I assume you are using Windows Runtime. So about your question:

    >>My doubt is how to give acknowledge to store for Durable product.

    It is not set from your code, it is from here when you submit your IAP product:

    When we set a durable item, we need to give it a product lifetime.

    Then in our code we can use the following code to calculate the remainingdays:

    var remainingDays = (productLicense1.ExpirationDate - DateTime.Now).Days;

    The productLicense1 is our product’s license: licenseInformation.ProductLicenses[“testduraable”]


    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, August 18, 2015 10:12 AM