コード例 #1
0
 public IyzicoPaymentProcessor(IyzicoPaymentSettings iyzicoPaymentSettings,
                               ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService,
                               ILocalizationService localizationService, IWebHelper webHelper, IStoreContext storeContext,
                               IOrderService orderService,
                               ICustomerService customerService,
                               ICountryService countryService,
                               IProductService productService,
                               ICategoryService categoryService,
                               IEncryptionService encryptionService,
                               IHttpContextAccessor httpContextAccessor)
 {
     this._iyzicoPaymentSettings        = iyzicoPaymentSettings;
     this._settingService               = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._localizationService          = localizationService;
     this._webHelper           = webHelper;
     this._storeContext        = storeContext;
     this._orderService        = orderService;
     this._customerSerivce     = customerService;
     this._countryService      = countryService;
     this._productService      = productService;
     this._categoryService     = categoryService;
     this._httpContextAccessor = httpContextAccessor;
     this._encryptionService   = encryptionService;
 }
コード例 #2
0
        public override void Install()
        {
            var settings = new IyzicoPaymentSettings
            {
                DescriptionText =
                    "<p>In cases where an order is placed, an authorized representative will contact you, personally or over telephone, to confirm the order.<br />After the order is confirmed, it will be processed.<br />Orders once confirmed, cannot be cancelled.</p><p>P.S. You can edit this text from admin panel.</p>"
            };

            _settingService.SaveSetting(settings);

            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.DescriptionText", "Description");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.DescriptionText.Hint",
                                                 "Enter info that will be shown to customers during checkout");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.PaymentMethodDescription", "Cash On Delivery");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.AdditionalFee.Hint", "The additional fee.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.AdditionalFeePercentage",
                                                 "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.AdditionalFeePercentage.Hint",
                                                 "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.ShippableProductRequired",
                                                 "Shippable product required");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.ShippableProductRequired.Hint",
                                                 "An option indicating whether shippable products are required in order to display this payment method during checkout.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.APIUrl", "API Url (sandbox or real one).");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.APIKey", "API Key.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payment.Iyzico.SecretKey", "Secret Key.");
            this.AddOrUpdatePluginLocaleResource("Payment.Secure3d", "Secure 3D");


            base.Install();
        }