Receipts are generated either using the Simulator Store or based on available data. In the second case, you first configure the simulator:
StorageFile proxyFile = await Package.Current.InstalledLocation.GetFileAsync(localPathToFile); await CurrentAppSimulator.ReloadSimulatorAsync(proxyFile);
And then request the appropriate receipts:
// Simulator generates receipts based on data you provided earlier String receipt = await CurrentAppSimulator.GetAppReceiptAsync(); String prettyReceipt = XElement.Parse(receipt).ToString(SaveOptions.None);
source share