Karthik Bammidi
Karthik Bammidi

Reputation: 1851

How to cancel the subscription with stripe

I am working on asp.net web application using c#. I am trying to work on stripe api for credit card transactions and subscriptions. I have followed the documentation present in stripe official site and also sample project XamarinStripe available on github. Now i am trying to cancel the subscription of a particular customer but i am unable to accomplish it using Xamarin dll. please guide me.

Upvotes: 1

Views: 2831

Answers (1)

Kyle Trauberman
Kyle Trauberman

Reputation: 25684

There are instructions on Stripe's website.

As for how to do it using XamarinStripe, the unit tests for the assembly has an example:

static StripeSubscription TestDeleteSubscription (StripeCustomer customer, StripePayment payment)
{
    StripeSubscription sub = payment.Unsubscribe (customer.ID, true);
    return sub;
}

Upvotes: 1

Related Questions