Skip to content

flavioruiz/chargebee-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChargeBee Ruby Client Library

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

Installation

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

$ sudo gem install chargebee

Documentation

For API reference see 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.

About

ChargeBee API client implementation for Ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published