Oja is a Ruby client for verification of Apple Store Receipts.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib Oja::Receipt accepts JSON data Oct 23, 2015
spec
Gemfile Implement a basic client for Apple Store Receipt verification. Aug 28, 2012
Gemfile.lock Update Gemfile.lock for the latest Peck. Sep 18, 2012
LICENSE
README.md
Rakefile
oja.gemspec Bump version to 0.2.0. Oct 16, 2012

README.md

Oja

Oja is a Ruby client for verification of Apple Store Receipts.

iOS and Mac application receive Receipts when handling purchases from the App Store. Before authorizing access to in-app content, these applications need to verify the receipt with Apple. Oja helps you check the Receipt's status.

Install

$ gem install oja

Get started

response = Oja.verify(:data => data)
if response.active?
  # Whatever you need to do
  p response.receipt_data
elsif response.inactive?
  # The receipt probably expired
else
  raise RuntimeError, response.humanized_status
end

Oja?

Ja.