Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.45 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.45 KB

Chargebee .Net Client Library - API V2

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

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 our API version V2. The library for V1 can be found in chargebee-v1 branch.

Installation

Install the latest version of the 2.x.x library with the following commands:

Use NuGet: NuGet is a package manager for Visual Studio.

To install the ChargeBee .Net Client Library, run the following command in the Package Manager Console:

$ Install-Package ChargeBee -Vesrion 2.x.x

If you would prefer to build it from source, checkout latest version of 2.x.x release tag:

$ git checkout [latest 2.x.x release tag]

Documentation

See our .Net API Reference.

Usage

To create a new subscription:

using ChargeBee.Api;
using ChargeBee.Models;
ApiConfig.Configure("site","api_key");
EntityResult result = Subscription.Create()
              .PlanId("basic")
			  .Request();
Subscription subscription = result.Subscription;
Customer customer = result.Customer;

License

See the LICENSE file.