question

WPDeveloper-2795 avatar image
0 Votes"
WPDeveloper-2795 asked ·

Fetching Add-On Price

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

uwpuwp-xaml
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I haven't heard from you these days. Is my reply helpful to you?

0 Votes 0 · ·

Have you solved your issue? Please feel free to contact us if you still have questions.

0 Votes 0 · ·

Are there any updates about your issue?

0 Votes 0 · ·

1 Answer

RoyLi-MSFT avatar image
1 Vote"
RoyLi-MSFT answered ·

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


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.