コード例 #1
0
 public PaymentExpressPaymentProcessor(PaymentExpressPaymentSettings PaymentExpressPaymentSettings,
     ISettingService settingService, ICurrencyService currencyService,
     CurrencySettings currencySettings, ILogger logger, IWebHelper webHelper,
     ICheckoutAttributeParser checkoutAttributeParser, ITaxService taxService,
     IOrderTotalCalculationService orderTotalCalculationService, HttpContextBase httpContext)
 {
     this._PaymentExpressPaymentSettings = PaymentExpressPaymentSettings;
     this._settingService = settingService;
     this._currencyService = currencyService;
     this._currencySettings = currencySettings;
     this._webHelper = webHelper;
     this._checkoutAttributeParser = checkoutAttributeParser;
     this._taxService = taxService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._httpContext = httpContext;
     this._logger = logger;
 }
コード例 #2
0
        public override void Install()
        {
            //settings
            var settings = new PaymentExpressPaymentSettings()
            {
                PxUrl = "https://sec.paymentexpress.com/pxaccess/pxpay.aspx"
            };
            _settingService.SaveSetting(settings);

            //locales
            //this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaymentExpress.Fields.RedirectionTip", "You will be redirected to PayPal site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaymentExpress.Fields.PxUrl", "Payment Epxress Url");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaymentExpress.Fields.PxUrl.Hint", "This is the Url the user will be redirected too to complete payment");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaymentExpress.Fields.PxUserId", "User Id");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaymentExpress.Fields.PxUserId.Hint", "Specify your Payment Express User Id.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaymentExpress.Fields.PxPassword", "Password");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaymentExpress.Fields.PxPassword.Hint", "Specify your Payment Express Password.");
           base.Install();
        }