我從stripe.net 1.2.0 DLL更新命名空間StripeCustomerUpdateSubscriptionOptions無法找到
我原來的代碼是這樣的
VAR myUpdatedSubscription =新StripeCustomerUpdateSubscriptionOptions(); 但現在我沒有找到命名空間沒有找到與新的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;
您將需要閱讀說明如何更新現有訂閱的文檔:https://github.com/jaymedavis/stripe.net#updating-a-subscription或創建一個https://github.com /jaymedavis/stripe.net#creating-a-subscription – koopajah