Hi,
I have created an alloy project and setup the project with the example from
https://gist.github.com/dawsontoth/1448587
It all works fine and I can click buy for the product but the code never confirms that a purchase has been made. I did have to modify the purchase product function to the following as I received an error message about zero quantity, so I have added the quantity. But it seems that the function doesn't fire to complete the process. I also added two alerts and I get the 'starting' alert but not alert 'one'
My code
function purchaseProduct(product) { showLoading(); alert('starting'); Storekit.purchase(product, 1, function (evt) { alert('one'); hideLoading(); switch (evt.state) { case Storekit.FAILED: alert('ERROR: Buying failed!'); break; case Storekit.PURCHASED: alert('Thanks! All Done'); markProductAsPurchased(product.identifier); break; case Storekit.RESTORED: alert('Thanks!'); markProductAsPurchased(product.identifier); break; } }); }The end results is nothing is purchased, i get messages saying that its been purchased but not downloaded and i can't restore anything. So how do I get the process to flow and complete the transaction?
Thanks in advance...