The .Net library for integrating with ChargeBee Recurring Billing and Subscription Management solution.
Install the latest version of the 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
If you would prefer to build it from source:
$ git clone [email protected]:chargebee/chargebee-dotnet.git
See our .Net API Reference.
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;
See the LICENSE file.