Skip to content

Instantly share code, notes, and snippets.

@joshualambert
Created December 13, 2012 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshualambert/4273022 to your computer and use it in GitHub Desktop.
Save joshualambert/4273022 to your computer and use it in GitHub Desktop.
Storekit Purchase Issue
--------------------------------------------------
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