A module for validating receipts with Apple's App Store. Click here to read the full documentation.
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
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
receipt = @client.validate_receipt(base64_encoded_string)
This library supports has been manually tested agains the following Ruby implementations:
- Ruby 2.1.0