The python library for integrating with ChargeBee Recurring Billing and Subscription Management solution.
Install the latest version of the library with the following commands:
$ pip install --upgrade chargebee
or
$ easy_install --upgrade chargebee
If you would prefer to install it from source:
$ git clone git@github.com:chargebee/chargebee-python.git
$ python setup.py install
See our Python API Reference.
To create a new subscription:
import chargebee
chargebee.configure(api_key, site)
res = chargebee.Subscription.create({
"plan_id" : "basic"
})
print res.subscription
See the LICENSE file.