Last active
August 29, 2015 14:15
-
-
Save filR/70e0b19d1674e0a70aa6 to your computer and use it in GitHub Desktop.
Validate a iOS Receipt
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
var request = require('request'); | |
var data = { | |
'receipt-data': '{ base64 encoded receipt }', | |
'password': '{secret string from itunes connect}' | |
} | |
var verifyURL = 'https://buy.itunes.apple.com/verifyReceipt'; | |
// verifyURL = 'https://sandbox.itunes.apple.com/verifyReceipt'; | |
request.post({ url: verifyURL, json: data }, function(err, res, body) { | |
console.log(body); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment