Validating Apple App Store receipts for In App Purchase can be a pain, so I wanted an easy way to throw a receipt in and figure out if it was a valid or not.
So, I threw together a quick PHP script to figure this out quickly and easily; it takes a base64 encoded receipt as the input and will tell you if it is valid or not.
Give it a try:
The script is hosted at http://www.chrismaddern.com/validate-itunes-receipt/ and you’re free to use it – it will also take the url arguments receipt and sandbox to run without requiring input. If you would like to script it automatically as part of a deployment etc… I would ask that you host your own version, the code is available to download below:
I hope it helps!





Discussion