public override void Install() { var settings = new PayuPaymentSettings() { MerchantId = "", Key = "", MerchantParam = "", PayUri = "https://sandboxsecure.payu.in/_payment", AdditionalFee = 0, }; _settingService.SaveSetting(settings); //locales this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.RedirectionTip", "You will be redirected to Payu site to complete the order."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.MerchantId", "Key"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.MerchantId.Hint", "Enter Key."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.Key", "Salt"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.Key.Hint", "Enter salt."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.MerchantParam", "Merchant Param"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.MerchantParam.Hint", "Enter merchant param."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.PayUri", "Pay URI"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.PayUri.Hint", "Enter Pay URI."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.AdditionalFee", "Additional fee"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.AdditionalFee.Hint", "Enter additional fee to charge your customers."); base.Install(); }
public override async Task InstallAsync() { var settings = new PayuPaymentSettings() { MerchantId = "", Key = "", MerchantParam = "", PayUri = "https://sandboxsecure.payu.in/_payment", AdditionalFee = 0, }; _settingService.SaveSettingAsync(settings); //locales await _localizationService.AddOrUpdateLocaleResourceAsync(new Dictionary <string, string> { ["Plugins.Payments.Payu.RedirectionTip"] = "You will be redirected to Payu site to complete the order.", ["Plugins.Payments.Payu.Fields.MerchantId"] = "Key", ["Plugins.Payments.Payu.Fields.MerchantId.Hint"] = "Enter Key.", ["Plugins.Payments.Payu.Fields.Key"] = "Salt", ["Plugins.Payments.Payu.Fields.Key.Hint"] = "Enter salt.", ["Plugins.Payments.Payu.Fields.MerchantParam"] = "Merchant Param", ["Plugins.Payments.Payu.Fields.MerchantParam.Hint"] = "Enter merchant param.", ["Plugins.Payments.Payu.Fields.PayUri"] = "Pay URI", ["Plugins.Payments.Payu.Fields.PayUri.Hint"] = "Enter Pay URI.", ["Plugins.Payments.Payu.Fields.AdditionalFee"] = "Additional fee", ["Plugins.Payments.Payu.Fields.AdditionalFee.Hint"] = "Enter additional fee to charge your customers.", ["Plugins.Payments.Payu.Fields.AdditionalFeePercentage"] = "Additional fee.Use percentage", ["Plugins.Payments.Payu.Fields.AdditionalFeePercentage.Hint"] = "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.", }); await base.InstallAsync(); }
public PayuPaymentProcessor(PayuPaymentSettings PayuPaymentSettings, ISettingService settingService, ICurrencyService currencyService, CurrencySettings currencySettings, IWebHelper webHelper) { this._PayuPaymentSettings = PayuPaymentSettings; this._settingService = settingService; this._currencyService = currencyService; this._currencySettings = currencySettings; this._webHelper = webHelper; }
public PayuPaymentProcessor(PayuPaymentSettings PayuPaymentSettings, ISettingService settingService, ICurrencyService currencyService, ILocalizationService localizationService, CurrencySettings currencySettings, IWebHelper webHelper, IEmailSender emailSender, IEmailAccountService emailAccountService, EmailAccountSettings emailAccountSettings) { this._payuPaymentSettings = PayuPaymentSettings; this._settingService = settingService; this._currencyService = currencyService; this._currencySettings = currencySettings; this._webHelper = webHelper; this._localizationService = localizationService; this._emailSender = emailSender; this._emailAccountService = emailAccountService; this._emailAccountSettings = emailAccountSettings; }
public PayuPaymentProcessor(PayuPaymentSettings PayuPaymentSettings, ISettingService settingService, ICurrencyService currencyService, ILocalizationService localizationService, CurrencySettings currencySettings, IWebHelper webHelper, IAddressService addressService, IStateProvinceService stateProvinceService, ICountryService countryService) { this._localizationService = localizationService; this._PayuPaymentSettings = PayuPaymentSettings; this._settingService = settingService; this._currencyService = currencyService; this._currencySettings = currencySettings; this._webHelper = webHelper; this._addressService = addressService; this._stateProvinceService = stateProvinceService; this._countryService = countryService; }
public override void Install() { var settings = new PayuPaymentSettings() { MerchantId = "", Key = "", MerchantParam = "", PayUri = "https://test.payu.in/_payment", AdditionalFee = 0, }; _settingService.SaveSetting(settings); //locales this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.RedirectionTip", "You will be redirected to Payu site to complete the order."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.MerchantId", "Merchant ID"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.MerchantId.Hint", "Enter merchant ID."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.Key", "Working Key"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.Key.Hint", "Enter working key."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.MerchantParam", "Merchant Param"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.MerchantParam.Hint", "Enter merchant param."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.PayUri", "Pay URI"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.PayUri.Hint", "Enter Pay URI."); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.AdditionalFee", "Additional fee"); this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Payu.AdditionalFee.Hint", "Enter additional fee to charge your customers."); base.Install(); }