ChargeBee API client implementation for Ruby
Clone or download
Latest commit f07d6e4 Jan 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib * * * Jan 10, 2019
spec * * * Sep 21, 2016
.gitignore added gitignore Apr 6, 2012
CHANGELOG.md * * * Jan 10, 2019
LICENSE * * * Jan 10, 2019
README.rdoc * * * Jun 1, 2017
Rakefile Support for Amazon Payments Nov 26, 2014
chargebee.gemspec Release 2.6.2 Jan 10, 2019

README.rdoc

Chargebee Ruby Client Library - API V2

This is the Ruby Library for integrating with Chargebee. Sign up for a Chargebee account here.

Chargebee now supports two API versions - V1 and V2, of which V2 is the latest release and all future developments will happen in V2. This library is for API version V2. If you’re looking for V1, head to chargebee-v1 branch.

Installation

Install the latest version of the gem with the following command…

$ sudo gem install chargebee -v '~>2'

Requirements

  • Ruby 1.9.3 or above.

  • rest-client

Documentation

For API reference see here

Usage

To create a new subscription:

ChargeBee.configure({:api_key => "your_api_key" , :site => "your_site"})
result = ChargeBee::Subscription.create({
	:id => "sub_KyVqDh__dev__NTn4VZZ1", 
	:plan_id => "basic", 
})
subscription = result.subscription
puts "created subscription is #{subscription}"

License

See the LICENSE file.