Sha256: 5e9d2363b35b64dce9a8c9b5d7a980d7b776a4092691aead45f59eea3c65453d

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

= Chargebee Ruby Client Library - API V1

The ruby library for integrating with Chargebee Recurring Billing and Subscription Management solution.

Chargebee now supports two API versions - {V1}[https://apidocs.chargebee.com/docs/api/v1] and {V2}[https://apidocs.chargebee.com/docs/api]. This library is for our <b>older API version V1</b>. The library for V2 can be found in the {master branch}[https://github.com/chargebee/chargebee-ruby]. 

You'd want to upgrade to V2 to benefit from the new functionality. Click here for the {API V2 Upgradation Guide}[https://apidocs.chargebee.com/docs/api/v1#api-v2-upgradation-guide].

== Installation

Install the latest version of the gem with the following command...
  
    $ sudo gem install chargebee -v '~>1'

== Documentation

For API reference see {here}[https://apidocs.chargebee.com/docs/api/v1/?lang=ruby]

== 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.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chargebee-1.7.5 README.rdoc
chargebee-1.7.4 README.rdoc
chargebee-1.7.3 README.rdoc
chargebee-1.7.2 README.rdoc