Skip to content

A simple library for communicating with Apple's iTunes receipt validation server.

License

Notifications You must be signed in to change notification settings

jerhinesmith/honeycrisp

Repository files navigation

honeycrisp Build Status

A module for validating receipts with Apple's App Store. Click here to read the full documentation.

Installation

To install using Bundler grab the latest stable version:

gem 'honeycrisp', '~> 0.0.1'

To manually install honeycrisp via Rubygems simply gem install:

gem install honeycrisp

To build and install the development branch yourself from the latest source:

git clone [email protected]:jerhinesmith/honeycrisp.git
cd honeycrisp
make install

Getting Started With Honeycrisp

Setup Work

require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'honeycrisp'

# put your own credentials here
shared_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

# set up a client to talk to the App Store
@client = Honeycrisp::Client.new shared_secret, use_sandbox: true

# alternatively, you can preconfigure the client like so
Honeycrisp.configure do |config|
  config.shared_secret = shared_secret
  config.use_sandbox = true
end

# and then you can create a new client without parameters
@client = Honeycrisp::Client.new

Validate a receipt

receipt = @client.validate_receipt(base64_encoded_string)

Supported Ruby Versions

This library supports has been manually tested agains the following Ruby implementations:

  • Ruby 2.1.0

More Information

About

A simple library for communicating with Apple's iTunes receipt validation server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published