Created
December 13, 2012 00:32
-
-
Save joshualambert/4273022 to your computer and use it in GitHub Desktop.
Storekit Purchase Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------- | |
Code | |
-------------------------------------------------- | |
AppContext.Storekit.requestProducts(['com.testproduct.lite.pm1'], function (evt) { | |
displayLog(JSON.stringify(evt)); | |
if (!evt.success) { | |
alert('ERROR: We failed to talk to Apple!'); | |
} | |
else if (evt.invalid) { | |
alert('ERROR: We requested an invalid product!'); // This is the error that I keep getting. | |
} else { | |
success(evt.products[0]); | |
} | |
}); | |
-------------------------------------------------- | |
Returned Object (Used JSON.stringify on evt.) | |
-------------------------------------------------- | |
{"products":[],"type":"callback","source":{},"invalid":["com.testproduct.lite.pm1"],"success":true} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment