亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

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 關注
  • 95 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號