I am trying to incorporate a few in app purchases. I have added them into my app on the Dev Center, and created an xml file as below this ticket.
Das CurrentAppSimulator-Objekt ruft seine Daten aus der WindowsStoreProxy.xml-Datei im %userprofile%\appdata\local\packages\ package-moniker \localstate\microsoft\Windows Store\Apidata-Ordner ab. Sie müssen diese Datei für das Szenario konfigurieren, das Sie in den CurrentAppSimulator-Eigenschaften simulieren möchten.
I have set up in-app purchasing with the CurrentAppSimulator, and set up the functionality to get the in-app purchase. I have also (possibly) configured my WindowsStoreProxy.xml file to handle this. However, when I purchase the addon and give it an S_OK value to return, it still says the IAP is inactive.
When simulating the transaction, call ReloadSimulatorAsync to load your file. If you do not call ReloadSimulatorAsync to load your own WindowsStoreProxy.xml file, CurrentAppSimulator will create/load (but not overwrite) the default WindowsStoreProxy.xml file.
Windows.ApplicationModel.Store.CurrentApp. to. Windows.ApplicationModel.Store.CurrentAppSimulator. and run your purchase function. Simple enough. But this testing function has a limitation in that it resets every time you start the app.
In this final Hands On Lab, we use the CurrentAppSimulator class to simulate interaction with the Windows Store API. Here we simply use the configuration file to declaratively modify the user interface. This simulates the data retrieved from the Windows Store.