public override void Install()
        {
            //settings
            var settings = new PayGatePaymentSettings
            {
                UseSandbox    = true,
                PayGateID     = "10011072130",
                EncryptionKey = "secret",
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.RedirectionTip", "You will be redirected to PayGate site to complete the order.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.UseSandbox", "Use Sandbox");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.PayGateID", "PayGate ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.PayGateID.Hint", "Specify your PayGate ID.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EncryptionKey", "Encryption Key");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EncryptionKey.Hint", "Specify Encryption Key");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn", "Enable IPN (Instant Payment Notification)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn.Hint", "Check if IPN is enabled.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn.Hint2", "Leave blank to use the default IPN handler URL.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.PaymentMethodDescription", "Pay by Credit/Debit Card");

            base.Install();
        }
Exemple #2
0
        public override void Install()
        {
            //settings
            var settings = new PayGatePaymentSettings
            {
                TestMode       = true,
                PayGateID      = "10011072130",
                EncryptionKey  = "secret",
                UseSSL         = false,
                EnableIpn      = false,
                EnableRedirect = true,
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.RedirectionTip", "You will be redirected to PayGate site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.TestMode", "Use test mode");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.TestMode.Hint", "Check to use a PayGate test account (no real transactions are processed).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.PayGateID", "PayGate ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.PayGateID.Hint", "Specify your PayGate ID.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EncryptionKey", "Encryption Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EncryptionKey.Hint", "Specify Encryption Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn", "Enable IPN (Instant Payment Notification)");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn.Hint", "IPN is a direct notification outside of the browser. It provides more relaibility than just the Redirect method.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn.Hint2", "Leave blank to use the default IPN handler URL.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableRedirect", "Enable Redirect ");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableRedirect.Hint", "Redirect requires the users browser to stay open until the transaction is completed. It may be used together with IPN.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableRedirect.Hint2", "Leave blank to use the default redirect handler URL.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.PaymentMethodDescription", "Pay by Credit/Debit Card");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.UseSSL", "Use SSL for Store");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.UseSSL.Hint", "Enforce use of SSL for Store.");

            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Instructions", @"<p>

<b>Open an Account:</b>
                <br />
                <br />
                1.	You need a Merchant Account with PayGate to accept online payments. Register a new
                Merchant Account with PayGate by completing the online registration form at
                <a href=""https://www.paygate.co.za/get-started-with-paygate/"">https://www.paygate.co.za/get-started-with-paygate/</a>
                <br />
                <br />
                2.  One of our sales agents will contact you to complete the registration process.
                <br />
                3.  You will be provided with your Paygate Merchant Credentials required to set up your Store.
                <br /></p>");


            base.Install();
        }
Exemple #3
0
 public PayGatePaymentProcessor(PayGatePaymentSettings payGatePaymentSettings,
                                ISettingService settingService, ICurrencyService currencyService,
                                CurrencySettings currencySettings, IWebHelper webHelper,
                                ILocalizationService localizationService,
                                IHttpContextAccessor httpContextAccessor
                                )
 {
     this._payGatePaymentSettings = payGatePaymentSettings;
     this._settingService         = settingService;
     this._currencyService        = currencyService;
     this._currencySettings       = currencySettings;
     this._webHelper           = webHelper;
     this._localizationService = localizationService;
     this._httpContextAccessor = httpContextAccessor;
 }
Exemple #4
0
        public override void Install()
        {
            //settings
            var settings = new PayGatePaymentSettings
            {
                UseSandbox    = true,
                PayGateID     = "10011072130",
                EncryptionKey = "secret",
                UseSSL        = false,
                EnableIpn     = false
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.RedirectionTip", "You will be redirected to PayGate site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.PayGateID", "PayGate ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.PayGateID.Hint", "Specify your PayGate ID.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EncryptionKey", "Encryption Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EncryptionKey.Hint", "Specify Encryption Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn", "Enable IPN (Instant Payment Notification)");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn.Hint", "Check if IPN is enabled.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.EnableIpn.Hint2", "Leave blank to use the default IPN handler URL.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.PaymentMethodDescription", "Pay by Credit/Debit Card");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.UseSSL", "Use SSL for Store");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Fields.UseSSL.Hint", "Enforce use of SSL for Store.");

            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayGate.Instructions", @"<p>

<b>Open an Account:</b>
                <br />
                <br />
                1.	You need a Merchant Account with PayGate to accept online payments. Register a new
                Merchant Account with PayGate by completing the online registration form at
                <a href=""https://www.paygate.co.za/get-started-with-paygate/"">https://www.paygate.co.za/get-started-with-paygate/</a>
                <br />
                <br />
                2.  One of our sales agents will contact you to complete the registration process.
                <br />
                3.  You will be provided with your Paygate Merchant Credentials required to set up your Store.
                <br /></p>");


            base.Install();
        }
 public PayGatePaymentProcessor(PayGatePaymentSettings payGatePaymentSettings,
                                ISettingService settingService, ICurrencyService currencyService,
                                CurrencySettings currencySettings, IWebHelper webHelper,
                                ICheckoutAttributeParser checkoutAttributeParser, ITaxService taxService,
                                IOrderTotalCalculationService orderTotalCalculationService, ILocalizationService localizationService,
                                HttpContextBase httpContext, ILogger logger, IOrderService orderService,
                                IStoreContext storeContext)
 {
     this._storeContext                 = storeContext;
     this._logger                       = logger;
     this._payGatePaymentSettings       = payGatePaymentSettings;
     this._settingService               = settingService;
     this._currencyService              = currencyService;
     this._currencySettings             = currencySettings;
     this._webHelper                    = webHelper;
     this._checkoutAttributeParser      = checkoutAttributeParser;
     this._taxService                   = taxService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._localizationService          = localizationService;
     this._httpContext                  = httpContext;
     this._orderService                 = orderService;
 }