Пример #1
0
        public override void Install()
        {
            //settings
            var settings = new WxPayPaymentSettings()
            {
                APPID         = "",
                KEY           = "",
                APPSECRET     = "",
                AdditionalFee = 0,
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.RedirectionTip", "You will be redirected to AliPay site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.SellerEmail", "Seller email");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.SellerEmail.Hint", "Enter seller email.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.Key", "Key");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.Key.Hint", "Enter key.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.Partner", "Partner");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.Partner.Hint", "Enter partner.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.AliPay.AdditionalFee.Hint", "Enter additional fee to charge your customers.");

            base.Install();
        }
Пример #2
0
 public WxPayPaymentProcessor(
     ISettingService settingService,
     IWebHelper webHelper,
     IStoreContext storeContext,
     WxPayPaymentSettings wxPayPaymentSettings,
     IVendorService vendorService,
     IOrderService orderService,
     IRefundOrderItemService refundOrderItemService,
     IWorkContext workContext)
 {
     this._settingService         = settingService;
     this._webHelper              = webHelper;
     this._storeContext           = storeContext;
     this._WxPaymentSettings      = wxPayPaymentSettings;
     this._vendorService          = vendorService;
     this._orderService           = orderService;
     this._refundOrderItemService = refundOrderItemService;
     this._workContext            = workContext;
 }