Fetching Add-On Price

WP Developer 6 Reputation points
2019-12-22T05:52:00.69+00:00

Team,

I have launched my app in different language. I have add-on added to my app which users can purchase. Now, as we know that add-on price is different in different countries.

How can I fetch add-on price in UWP from microsoft in C# code?

Thanks in advance

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 31,681 Reputation points Microsoft Vendor
    2019-12-23T02:23:25.73+00:00

    Hello,

    Welcome to Microsoft Q&A!

    You could query the available add-on products for the current app first. It will return all the products that the user could purchase for the current app. It's a list that contains StoreProduct Objects as items. Then you could find out which add-on product you are looking for and get the price property of that StoreProduct Object.

    Here is the document about how to query the available add-on products for the current app: Get info for add-ons that are available for purchase from the current app

    1 person found this answer helpful.
    0 comments No comments