Project

honeycrisp

0.0
No commit activity in last 3 years
No release in over 3 years
A simple library for communicating with Apple's iTunes receipt validation server.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5

Runtime

< 0.10, >= 0.8
>= 1.3.0
 Project Readme

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 git@github.com: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