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 honeycrispTo build and install the development branch yourself from the latest source:
git clone git@github.com:jerhinesmith/honeycrisp.git
cd honeycrisp
make installGetting 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.newValidate 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