Note that IAP methods will work ONLY with submitted public and beta app versions downloaded from the Windows Phone Store.
- Make the beta app version and add products in the Windows Phone Dev Center Dashboard - declare your product identifier names there.
- Paste your unique product identifiers to the GetIAPIdentifier method in IAP.cs file, submit the beta app and test it. Note that all product prices in beta versions are 0.00 displayed in local currency.
- Declare the exact same product identifiers names in your release app version
- Reuse the same code for the release app
In the MainPage.xaml.cs file all the code blocks used for IAP I'm commenting starting with "//IAP_TUTORIAL: " so that you know which part is necessary to implement for IAPs.
These are the files including IAP code you should look for: