Sha256: a9a2f309b2210d4a36cd3b840cbf57803d761b8479a75f7ba458edac28583719

Contents?: true

Size: 1.34 KB

Versions: 27

Compression:

Stored size: 1.34 KB

Contents

= Chargebee Ruby Client Library - API V2

{<img src="https://img.shields.io/gem/v/chargebee.svg?maxAge=2592000"/>}[https://rubygems.org/gems/chargebee]
{<img src="https://img.shields.io/gem/dtv/chargebee.svg?maxAge=2592000"/>}[https://rubygems.org/gems/chargebee]

This is the Ruby Library for integrating with Chargebee. Sign up for a Chargebee account {here}[https://www.chargebee.com].

Chargebee now supports two API versions - {V1}[https://apidocs.chargebee.com/docs/api/v1] and {V2}[https://apidocs.chargebee.com/docs/api], of which V2 is the latest release and all future developments will happen in V2. This library is for <b>API version V2</b>. If you’re looking for V1, head to {chargebee-v1 branch}[https://github.com/chargebee/chargebee-ruby/tree/chargebee-v1].

== Installation

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

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

== Documentation

For API reference see {here}[https://apidocs.chargebee.com/docs/api?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

27 entries across 27 versions & 1 rubygems

Version Path
chargebee-2.2.8 README.rdoc
chargebee-2.2.7 README.rdoc
chargebee-2.2.6 README.rdoc
chargebee-2.2.5 README.rdoc
chargebee-2.2.4 README.rdoc
chargebee-2.2.3 README.rdoc
chargebee-2.2.2 README.rdoc
chargebee-2.2.1 README.rdoc
chargebee-2.2.0 README.rdoc
chargebee-2.1.9 README.rdoc
chargebee-2.1.8 README.rdoc
chargebee-2.1.7 README.rdoc
chargebee-2.1.6 README.rdoc
chargebee-2.1.5 README.rdoc
chargebee-2.1.4 README.rdoc
chargebee-2.1.3 README.rdoc
chargebee-2.1.2 README.rdoc
chargebee-2.1.1 README.rdoc
chargebee-2.1.0 README.rdoc
chargebee-2.0.9 README.rdoc