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

Update: this is now hosted on GitHub

Any forks / pull requests are more than welcome; I know the PHP isn’t exactly perfect!

Code on GitHub

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.

2 Twitter Comments So Far

  1. @phpizer
    February 4, 2012 at 3:02 am #

    Validate App Store IAP Receipt Codes Online Tool | Chris’ notes http://t.co/RjaqyYLy

  2. Victor Lontoh (@vlizco)
    March 7, 2012 at 2:09 am #

    Validate App Store IAP Receipt Codes Online Tool | Chris’ notes: http://t.co/Ha7YJF4k #php

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

Follow

Get every new post delivered to your Inbox

Join other followers: