我在应用程序中使用条带进行付款,但在控制器中出现错误后
错误:
1.“找不到类型或命名空间名称”StripeCustomerService“(是否正在使用”
2.“找不到类型或命名空间名称”StripeChargeService“(是否正在使用”)
基于此https://www.fuget.org/packages/stripe.net/37.14.0/lib/netstandard2.0/stripe.net.dll/stripe/customerservice
Stripe.NET库似乎没有公开StripeCustomerService类。
在Stripe命名空间中有一个CustomerService类,您可以这样实例化它:
var cs = new Stripe.CustomerService();