为了账号安全,请及时绑定邮箱和手机立即绑定

Nopcommerce 无法找到我的付款方式插件的组件

Nopcommerce 无法找到我的付款方式插件的组件

C#
摇曳的蔷薇 2022-12-24 09:56:05
我正在为我的客户开发定制的付款方式插件。我是 Nopcommerce 插件开发的初学者,这是我的插件目录结构:代码这是我的CODBookingPaymentProcessor.cspublic class CODBookingPaymentProcessor : BasePlugin, IPaymentMethod{    #region Ctor    public CODBookingPaymentProcessor()    {    }    #endregion    #region Methods    public bool SupportCapture => false;    public bool SupportPartiallyRefund => false;    public bool SupportRefund => false;    public bool SupportVoid => false;    public RecurringPaymentType RecurringPaymentType => RecurringPaymentType.NotSupported;    public PaymentMethodType PaymentMethodType => PaymentMethodType.Standard;    public bool SkipPaymentInfo => false;    public string PaymentMethodDescription => "Pay booking and extras before order placing.";    public CancelRecurringPaymentResult CancelRecurringPayment(CancelRecurringPaymentRequest cancelPaymentRequest)    {        return new CancelRecurringPaymentResult();    }    public bool CanRePostProcessPayment(Order order)    {        if (order == null)            throw new ArgumentNullException(nameof(order));        //it's not a redirection payment method. So we always return false        return false;    }    public CapturePaymentResult Capture(CapturePaymentRequest capturePaymentRequest)    {        return new CapturePaymentResult { Errors = new[] { "Capture method not supported" } };    }    public decimal GetAdditionalHandlingFee(IList<ShoppingCartItem> cart)    {        return 0;    }    public ProcessPaymentRequest GetPaymentInfo(IFormCollection form)    {        return new ProcessPaymentRequest();    }    public string GetPublicViewComponentName()    {        return "CODBooking";    }    public bool HidePaymentMethod(IList<ShoppingCartItem> cart)    {        return false;    }    public void PostProcessPayment(PostProcessPaymentRequest postProcessPaymentRequest)    {    }   
查看完整描述

1 回答

?
HUH函数

TA贡献1836条经验 获得超4个赞

.cshtml 文件名“Boooking.cshtml”中有错别字 :) 仔细看。



查看完整回答
反对 回复 2022-12-24
  • 1 回答
  • 0 关注
  • 120 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号