An open API service indexing awesome lists of open source software.

https://github.com/linjunpop/iap_verifier

In-App Purchase receipt verification.
https://github.com/linjunpop/iap_verifier

Last synced: 5 months ago
JSON representation

In-App Purchase receipt verification.

Awesome Lists containing this project

README

          

# IAPVerifier

[![Build Status](https://travis-ci.org/linjunpop/iap_verifier.svg)](https://travis-ci.org/linjunpop/iap_verifier)
[![Code Climate](http://img.shields.io/codeclimate/github/linjunpop/iap_verifier.svg)](https://codeclimate.com/github/linjunpop/iap_verifier)
[![Gem Version](http://img.shields.io/gem/v/iap_verifier.svg)](https://rubygems.org/gems/iap_verifier)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://linjunpop.mit-license.org)

In-App Purchase receipt verification.

## Installation

Add this line to your application's Gemfile:

gem 'iap_verifier'

And then execute:

$ bundle

Or install it yourself as:

$ gem install iap_verifier

## Usage

```ruby
receipt = IAPVerifier.verify_receipt('base64_encoded_receipt_string')
receipt.original_application_version # 1234
receipt.original_purchase_date_pst # 2014-08-31 11:24:13 America/Los_Angeles
```

## Contributing

1. Fork it ( https://github.com/linjunpop/iap_verifier/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request