I'm updating from stripe.net 1.2.0 dll
My original code was this
var myUpdatedSubscription = new StripeCustomerUpdateSubscriptionOptions();
but now I get no namespace not found error
with the new stripe.net v7.
var myUpdatedSubscription = new StripeCustomerUpdateSubscriptionOptions();
myUpdatedSubscription.PlanId = SelectedSubscription;
myUpdatedSubscription.TokenId = stripeToken;
myUpdatedSubscription.Quantity = 1;
var customerService = new StripeCustomerService();
StripeSubscription subscription = customerService.UpdateSubscription(StripeCustomerID, myUpdatedSubscription);
objCompany.SubscribeCompany(CompanyID, StripeCustomerID, SelectedSubscription);
pnlForm.Visible = false;
pnlPaymentSuccessful.Visible = true;
Managing subscriptions has moved from the StripeCustomerService to the new StripeSubscriptionService. With this, the name of some of the types involved has changed, too. So, for example, instead of StripeCustomerUpdateSubscriptionOptions, you do now use StripeSubscriptionUpdateOptions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With