第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

Nopcommerce 無法找到我的付款方式插件的組件

Nopcommerce 無法找到我的付款方式插件的組件

C#
搖曳的薔薇 2022-12-24 09:56:05
我正在為我的客戶開發(fā)定制的付款方式插件。我是 Nopcommerce 插件開發(fā)的初學(xué)者,這是我的插件目錄結(jié)構(gòu):代碼這是我的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函數(shù)

TA貢獻(xiàn)1836條經(jīng)驗(yàn) 獲得超4個(gè)贊

.cshtml 文件名“Boooking.cshtml”中有錯(cuò)別字 :) 仔細(xì)看。



查看完整回答
反對(duì) 回復(fù) 2022-12-24
  • 1 回答
  • 0 關(guān)注
  • 94 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)