Skip to main content

Creating a Subscription

Subscription subscription = new Subscription
{
CustomerId = 12345,
PlanId = 67890,
Items = new List<SubscriptionItem>
{
new SubscriptionItem
{
Description = "Monthly Plan",
Amount = 50
}
}
};
var response = chargeOver.CreateSubscription(subscription);
if (response.Success)
{
Console.WriteLine("Subscription created successfully");
}