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

我正在为我的客户开发定制的付款方式插件。我是 Nopcommerce 插件开发的初学者,这是我的插件目录结构:

http://img1.mukewang.com/63a65c4f0001d60003330180.jpg

代码

这是我的CODBookingPaymentProcessor.cs


public 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)

    {


    }


   

摇曳的蔷薇
浏览 121回答 1
1回答

HUH函数

.cshtml 文件名“Boooking.cshtml”中有错别字 :) 仔细看。
打开App,查看更多内容
随时随地看视频慕课网APP