Test bar disabled. Header div remains.

The Blog

Validate App Store IAP Receipt Codes Online Tool

Online Tool and Code Download at the bottom of the page

 

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:

Get the code

I hope it helps!

Discussion

About Chris

Chris is an entrepreneur, engineer and occasional writer here, and at the iPhone App Cafe. He uses and writes about a variety of platform and languages but is mostly focussed on iPhone and PHP-hacked-together services to support Apps.

Caution: divs may fall without warning! (Currently in development)