Simulating a Windows 8 Store apps purchase
问题 I am trying to put together code that simulates purchases for a Windows 8 (Store) app. The code is pretty simple and uses the Windows API: var result = await CurrentAppSimulator.RequestProductPurchaseAsync("product", true); // this is still false... var active = CurrentAppSimulator.LicenseInformation.ProductLicenses["product"].IsActive; The first call opens up the dialog that allows me to simulate the return code from the purchase. Even when i select S_OK, the next line still checks to see if