/// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new TwoCheckoutPaymentSettings()
            {
                UseSandbox    = true,
                UseMd5Hashing = true
            });

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.AccountNumber", "Account number");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.AccountNumber.Hint", "Enter account number.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.AdditionalFeePercentage", "Additional fee. Use percentage");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.PaymentMethodDescription", "You will be redirected to 2Checkout site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.RedirectionTip", "You will be redirected to 2Checkout site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.SecretWord", "Secret Word");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.SecretWord.Hint", "Enter secret word.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.2Checkout.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");

            base.Install();
        }
예제 #2
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new PayPalExpressCheckoutPaymentSettings());

            // locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.ApiSignature", "API Signature");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.ApiSignature.Hint", "The API Signature specified in your PayPal account.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.CartBorderColor", "Cart Border Color");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.CartBorderColor.Hint", "The color of the cart border on the PayPal page in a 6-character HTML hexadecimal ASCII color code format.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.DoNotHaveBusinessAccount", "I do not have a PayPal Business Account");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.DoNotHaveBusinessAccount.Hint", "I do not have a PayPal Business Account.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.EmailAddress", "Email Address");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.EmailAddress.Hint", "The email address to use if you don't have a PayPal Pro account. If you have an account, use that email, otherwise use one that you will use to create an account with to retrieve your funds.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.EnableDebugLogging", "Enable debug logging");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.EnableDebugLogging.Hint", "Allow the plugin to write extra info to the system log table.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.IsLive", "Live?");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.IsLive.Hint", "Check this box to make the system live (i.e. exit sandbox mode).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.LocaleCode", "Locale Code");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.LocaleCode.Hint", "Locale of pages displayed by PayPal during Express Checkout.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.LogoImageURL", "Banner Image URL");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.LogoImageURL.Hint", "URL for the image you want to appear at the top left of the payment page. The image has a maximum size of 750 pixels wide by 90 pixels high. PayPal recommends that you provide an image that is stored on a secure (https) server. If you do not specify an image, the business name displays.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.Password", "Password");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.Password.Hint", "The API Password specified in your PayPal account (this is not your PayPal account password).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.PaymentAction", "Payment Action");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.PaymentAction.Hint", "Select whether you want to make a final sale, or authorise and capture at a later date (i.e. upon fulfilment).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.RequireConfirmedShippingAddress", "Require Confirmed Shipping Address");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.RequireConfirmedShippingAddress.Hint", "Indicates whether or not you require the buyer’s shipping address on file with PayPal be a confirmed address.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.Username", "Username");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.Fields.Username.Hint", "The API Username specified in your PayPal account (this is not your PayPal account email)");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalExpressCheckout.PaymentMethodDescription", "Pay by PayPal");

            base.Install();
        }
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new SezzlePaymentSettings
            {
                UseSandbox      = true,
                TransactionMode = TransactionMode.AuthorizeAndCapture
            });

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.MerchantId", "Merchant Id");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.MerchantId.Hint", "Specify your merchant id.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.PublicKey", "Public Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.PublicKey.Hint", "Specify your public key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.PrivateKey", "Private Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.PrivateKey.Hint", "Specify your private key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.MinCheckoutAmount", "Minimum Checkout Amount");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.MinCheckoutAmount.Hint", "Specify minimum checkout amount to show the payment gateway.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.RedirectionTip", "You will be redirected to Sezzle Checkout to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Instructions", @"
            <p>
	            <br />1. Click <a href=""https://dashboard.sezzle.com/merchant/signup"" target=""_blank"">here</a> to create your account if not done already.
	            <br />2. Note down the Merchant Id, Public Key and Private Key.
	            <br />3. Provide the Merchant Id, Public Key, Private Key, Transaction Mode in the form below.
                <br />4. Provide Minimum Checkout Amount to restrict Sezzle based on the value you provided(Optional).
	            <br />5. Click Save.
	            <br />
            </p>");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.PaymentMethodDescription", "Buy Now, Pay Later with 0% interest");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.TransactionMode", "Transaction Mode");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Sezzle.Fields.TransactionMode.Hint", "Specify transaction mode.");

            base.Install();
        }
예제 #4
0
        public override void Install()
        {
            //locales

            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api", "Api plugin");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.Menu.ManageClients", "Manage Api Clients");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.Configure", "Configure Web Api");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.GeneralSettings", "General Settings");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.EnableApi", "Enable Api");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.EnableApi.Hint",
                                                                 "By checking this settings you can Enable/Disable the Web Api");

            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.Menu.Title", "API");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.Menu.Settings.Title", "Settings");

            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.Page.Settings.Title", "Api Settings");


            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.Settings.GeneralSettingsTitle", "General Settings");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Api.Admin.Edit", "Edit");

            _localizationService.AddOrUpdatePluginLocaleResource("Api.Categories.Fields.Id.Invalid", "Id is invalid");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.InvalidPropertyType", "Invalid Property Type");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.InvalidType", "Invalid {0} type");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.InvalidRequest", "Invalid request");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.InvalidRootProperty", "Invalid root property");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.NoJsonProvided", "No Json provided");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.InvalidJsonFormat", "Json format is invalid");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.Category.InvalidImageAttachmentFormat", "Invalid image attachment base64 format");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.Category.InvalidImageSrc", "Invalid image source");
            _localizationService.AddOrUpdatePluginLocaleResource("Api.Category.InvalidImageSrcType", "You have provided an invalid image source/attachment ");

            _settingService.SaveSetting(new ApiSettings());

            var apiRole = _customerService.GetCustomerRoleBySystemName(Constants.Roles.ApiRoleSystemName);

            if (apiRole == null)
            {
                apiRole = new CustomerRole
                {
                    Name       = Constants.Roles.ApiRoleName,
                    Active     = true,
                    SystemName = Constants.Roles.ApiRoleSystemName
                };

                _customerService.InsertCustomerRole(apiRole);
            }
            else if (apiRole.Active == false)
            {
                apiRole.Active = true;
                _customerService.UpdateCustomerRole(apiRole);
            }


            base.Install();

            // Changes to Web.Config trigger application restart.
            // This doesn't appear to affect the Install function, but just to be safe we will made web.config changes after the plugin was installed.
            //_webConfigMangerHelper.AddConfiguration();
        }
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new AuthorizeNetPaymentSettings
            {
                UseSandbox     = true,
                TransactMode   = TransactMode.Authorize,
                TransactionKey = "123",
                LoginId        = "456"
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Notes", "If you're using this gateway, ensure that your primary store currency is supported by Authorize.NET.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.UseShippingAddressAsBilling", "Use shipping address.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.UseShippingAddressAsBilling.Hint", "Check if you want to use the shipping address as a billing address.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.TransactModeValues", "Transaction mode");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.TransactModeValues.Hint", "Choose transaction mode.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.TransactionKey", "Transaction key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.TransactionKey.Hint", "Specify transaction key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.LoginId", "Login ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.LoginId.Hint", "Specify login identifier.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.AuthorizeNet.PaymentMethodDescription", "Pay by credit / debit card");

            base.Install();
        }
예제 #6
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new PayPalStandardPaymentSettings
            {
                UseSandbox = true
            });

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.BusinessEmail", "Business Email");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.BusinessEmail.Hint", "Specify your PayPal business email.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.PassProductNamesAndTotals", "Pass product names and order totals to PayPal");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.PassProductNamesAndTotals.Hint", "Check if product names and order totals should be passed to PayPal.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.PDTToken", "PDT Identity Token");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.PDTToken.Hint", "Specify PDT identity token");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.RedirectionTip", "You will be redirected to PayPal site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Instructions", "<p><b>If you're using this gateway ensure that your primary store currency is supported by PayPal.</b><br /><br />To use PDT, you must activate PDT and Auto Return in your PayPal account profile. You must also acquire a PDT identity token, which is used in all PDT communication you send to PayPal. Follow these steps to configure your account for PDT:<br /><br />1. Log in to your PayPal account (click <a href=\"https://www.paypal.com/us/webapps/mpp/referral/paypal-business-account2?partner_id=9JJPJNNPQ7PZ8\" target=\"_blank\">here</a> to create your account).<br />2. Click the Profile subtab.<br />3. Click Website Payment Preferences in the Seller Preferences column.<br />4. Under Auto Return for Website Payments, click the On radio button.<br />5. For the Return URL, enter the URL on your site that will receive the transaction ID posted by PayPal after a customer payment ({0}).<br />6. Under Payment Data Transfer, click the On radio button.<br />7. Click Save.<br />8. Click Website Payment Preferences in the Seller Preferences column.<br />9. Scroll down to the Payment Data Transfer section of the page to view your PDT identity token.<br /><br /></p>");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.PaymentMethodDescription", "You will be redirected to PayPal site to complete the payment");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.RoundingWarning", "It looks like you have \"ShoppingCartSettings.RoundPricesDuringCalculation\" setting disabled. Keep in mind that this can lead to a discrepancy of the order total amount, as PayPal only rounds to two decimals.");

            base.Install();
        }
예제 #7
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //pictures
            var sampleImagesPath = _fileProvider.MapPath("~/Plugins/Widgets.NivoSlider/Content/nivoslider/sample-images/");

            //settings
            var settings = new NivoSliderSettings
            {
                Picture1Id = _pictureService.InsertPicture(_fileProvider.ReadAllBytes(sampleImagesPath + "banner1.jpg"), MimeTypes.ImagePJpeg, "banner_1").Id,
                Text1      = "",
                Link1      = _webHelper.GetStoreLocation(false),
                Picture2Id = _pictureService.InsertPicture(_fileProvider.ReadAllBytes(sampleImagesPath + "banner2.jpg"), MimeTypes.ImagePJpeg, "banner_2").Id,
                Text2      = "",
                Link2      = _webHelper.GetStoreLocation(false)
                             //Picture3Id = _pictureService.InsertPicture(File.ReadAllBytes(sampleImagesPath + "banner3.jpg"), MimeTypes.ImagePJpeg, "banner_3").Id,
                             //Text3 = "",
                             //Link3 = _webHelper.GetStoreLocation(false),
            };

            _settingService.SaveSetting(settings);


            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Picture1", "Picture 1");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Picture2", "Picture 2");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Picture3", "Picture 3");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Picture4", "Picture 4");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Picture5", "Picture 5");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Picture", "Picture");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Picture.Hint", "Upload picture.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Text", "Comment");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Text.Hint", "Enter comment for picture. Leave empty if you don't want to display any text.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Link", "URL");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.Link.Hint", "Enter URL. Leave empty if you don't want this picture to be clickable.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.AltText", "Image alternate text");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.NivoSlider.AltText.Hint", "Enter alternate text that will be added to image.");

            base.Install();
        }
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new ClickatellSettings());

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.ApiId", "API ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.ApiId.Hint", "Specify Clickatell API ID.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.Enabled", "Enabled");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.Enabled.Hint", "Check to enable SMS provider.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.Password", "Password");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.Password.Hint", "Specify Clickatell API password.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.PhoneNumber", "Phone number");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.PhoneNumber.Hint", "Enter your phone number.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.TestMessage", "Message text");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.TestMessage.Hint", "Enter text of the test message.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.Username", "Username");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.Fields.Username.Hint", "Specify Clickatell API username.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.SendTest", "Send");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.SendTest.Hint", "Send test message");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.TestFailed", "Test message sending failed");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Sms.Clickatell.TestSuccess", "Test message was sent");

            base.Install();
        }
예제 #9
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new SendinBlueSettings
            {
                //prepopulate a tracking script
                TrackingScript = $@"<!-- SendinBlue tracting code -->
                <script>
                    (function() {{
                        window.sib = {{ equeue: [], client_key: '{SendinBlueDefaults.TrackingScriptId}' }};
                        window.sib.email_id = '{SendinBlueDefaults.TrackingScriptCustomerEmail}';
                        window.sendinblue = {{}}; for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {{ (function(k) {{ window.sendinblue[k] = function() {{ var arg = Array.prototype.slice.call(arguments); (window.sib[k] || function() {{ var t = {{}}; t[k] = arg; window.sib.equeue.push(t);}})(arg[0], arg[1], arg[2]);}};}})(j[i]);}}var n = document.createElement('script'),i = document.getElementsByTagName('script')[0]; n.type = 'text/javascript', n.id = 'sendinblue-js', n.async = !0, n.src = 'https://sibautomation.com/sa.js?key=' + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();
                    }})();
                </script>"
            });

            if (!_widgetSettings.ActiveWidgetSystemNames.Contains(SendinBlueDefaults.SystemName))
            {
                _widgetSettings.ActiveWidgetSystemNames.Add(SendinBlueDefaults.SystemName);
                _settingService.SaveSetting(_widgetSettings);
            }

            //install synchronization task
            if (_scheduleTaskService.GetTaskByType(SendinBlueDefaults.SynchronizationTask) == null)
            {
                _scheduleTaskService.InsertTask(new ScheduleTask
                {
                    Enabled = true,
                    Seconds = SendinBlueDefaults.DefaultSynchronizationPeriod * 60 * 60,
                    Name    = SendinBlueDefaults.SynchronizationTaskName,
                    Type    = SendinBlueDefaults.SynchronizationTask,
                });
            }

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.AccountInfo", "Account info");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.AccountInfo.Hint", "Display account information.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.ActivateSMTP", "On your SendinBlue account, the SMTP has not been enabled yet. To request its activation, simply send an email to our support team at [email protected] and mention that you will be using the SMTP with the nopCommerce plugin.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.AddNewSMSNotification", "Add new SMS notification");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.BillingAddressPhone", "Billing address phone number");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.CustomerPhone", "Customer phone number");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.EditTemplate", "Edit template");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.AllowedTokens", "Allowed message variables");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.AllowedTokens.Hint", "This is a list of the message variables you can use in your SMS.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.ApiKey", "API v3 key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.ApiKey.Hint", "Paste your SendinBlue account API v3 key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.CampaignList", "List");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.CampaignList.Hint", "Choose list of contacts to send SMS campaign.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.CampaignSenderName", "Send SMS campaign from");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.CampaignSenderName.Hint", "Input the name of the sender. The number of characters is limited to 11 (alphanumeric format).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.CampaignText", "Text");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.CampaignText.Hint", "Specify SMS campaign content. The number of characters is limited to 160 for one message.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.List", "List");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.List.Hint", "Select the SendinBlue list where your nopCommerce newsletter subscribers will be added.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.MaKey", "Tracker ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.MaKey.Hint", "Input your Tracker ID.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.Sender", "Send emails from");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.Sender.Hint", "Choose sender of your transactional emails.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.SmsSenderName", "Send SMS from");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.SmsSenderName.Hint", "Input the name of the sender. The number of characters is limited to 11 (alphanumeric format).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.SmtpKey", "SMTP key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.SmtpKey.Hint", "Specify SMTP key (password).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.StoreOwnerPhoneNumber", "Store owner phone number");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.StoreOwnerPhoneNumber.Hint", "Input store owner phone number for SMS notifications.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.TrackingScript", "Tracking script");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.TrackingScript.Hint", $"Paste the tracking script generated by SendinBlue here. {SendinBlueDefaults.TrackingScriptId} and {SendinBlueDefaults.TrackingScriptCustomerEmail} will be dynamically replaced.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.UseMarketingAutomation", "Use Marketing Automation");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.UseMarketingAutomation.Hint", "Check for enable SendinBlue Automation.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.UseSmsNotifications", "Use SMS notifications");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.UseSmsNotifications.Hint", "Check for sending transactional SMS.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.UseSmtp", "Use SendinBlue SMTP");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Fields.UseSmtp.Hint", "Check for using SendinBlue SMTP for sending transactional emails.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.General", "General");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.ImportProcess", "Your import is in process");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.ManualSync", "Manual synchronization");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.SyncNow", "Sync now");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.MarketingAutomation", "Marketing Automation");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.MyPhone", "Store owner phone number");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.PhoneType", "Type of phone number");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.PhoneType.Hint", "Specify the type of phone number to send SMS.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.SMS", "SMS");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.SMS.Campaigns", "SMS campaigns");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.SMS.Campaigns.Sent", "Campaign successfully sent");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.SMS.Campaigns.Submit", "Send campaign");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.SMSText", "Text");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.SMSText.Hint", "Enter SMS text to send.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Synchronization", "Contacts");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.Transactional", "Transactional emails");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.SendinBlue.UseSendinBlueTemplate", "SendinBlue template");

            base.Install();
        }
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new USPSSettings
            {
                Url      = USPSShippingDefaults.DEFAULT_URL,
                Username = "******",
                Password = "******",
                AdditionalHandlingCharge            = 0,
                CarrierServicesOfferedDomestic      = "",
                CarrierServicesOfferedInternational = ""
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.Url", "URL");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.Url.Hint", "Specify USPS URL.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.Username", "Username");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.Username.Hint", "Specify USPS username.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.Password", "Password");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.Password.Hint", "Specify USPS password.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.AdditionalHandlingCharge", "Additional handling charge");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.AdditionalHandlingCharge.Hint", "Enter additional handling fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.AvailableCarrierServicesDomestic", "Domestic Carrier Services");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.AvailableCarrierServicesDomestic.Hint", "Select the services you want to offer to customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.AvailableCarrierServicesInternational", "International Carrier Services");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.USPS.Fields.AvailableCarrierServicesInternational.Hint", "Select the services you want to offer to customers.");

            base.Install();
        }
        public override void Install()
        {
            //settings
            var settings = new CardknoxPaymentSettings
            {
                TransactMode                = TransactMode.Authorize,
                TransactionKey              = "",
                HideAddressDetails          = false,
                SendReceiptToCustomerEmail  = false,
                SoftwareName                = "nopCommerce Cardknox Plugin",
                SoftwareVersion             = "Default",
                UseShippingAddressAsBilling = false
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.UseShippingAddressAsBilling", "Use shipping address.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.UseShippingAddressAsBilling.Hint", "Check if you want to use the shipping address as a billing address.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.TransactModeValues", "Transaction mode");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.TransactModeValues.Hint", "Choose transaction mode.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.TransactionKey", "Transaction key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.TransactionKey.Hint", "Specify transaction key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.SoftwareName", "Software Name to send to the Cardknox SDK (required)");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.SoftwareName.Hint", "This is a required field to declare to the SDK");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.SoftwareVersion", "Software Version to send to the Cardknox SDK (required)");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.SoftwareVersion.Hint", "This is a required field to declare to the SDK");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.SoftwareApiVersion", "Custom API version to be used");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.SoftwareApiVersion.Hint", "Leave this option empty to use the default API version");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.UseCustomSoftwareApiVersion", "Use a custom API version");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.Fields.UseCustomSoftwareApiVersion.Hint", "Leave this option unchecked to use the default API version");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Cardknox.PaymentMethodDescription", "Pay by credit card");

            base.Install();
        }
예제 #12
0
        public override void Install()
        {
            var settings = new CCAvenuePaymentSettings()
            {
                MerchantId    = "",
                Key           = "",
                AccessCode    = "",
                MerchantParam = "",

                //PayUri = "https://www.ccavenue.com/shopzone/cc_details.jsp",
                PayUri        = "https://secure.ccavenue.com/transaction/transaction.do?command=initiateTransaction",
                AdditionalFee = 0,
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.RedirectionTip", "You will be redirected to CCAvenue site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.MerchantId", "Merchant ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.MerchantId.Hint", "Enter merchant ID.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.Key", "Working Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.Key.Hint", "Enter working key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.MerchantParam", "Merchant Param");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.MerchantParam.Hint", "Enter merchant param.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.PayUri", "Pay URI");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.PayUri.Hint", "Enter Pay URI.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.AccessCode", "Access Code");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.AccessCode.Hint", "Enter Access Code.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.CCAvenue.PaymentMethodDescription", "For payment you will be redirected to the CCAvenue website.");

            base.Install();
        }
예제 #13
0
        public override void Install()
        {
            //settings
            var settings = new GittiGidiyorSettings
            {
                ApiKey             = "",
                SecretKey          = "",
                RoleName           = "",
                RolePass           = "",
                ForceToSpecEntry   = false,
                NextDateOption     = false,
                Lang               = "",
                ListingDays        = "",
                CargoCompany       = "",
                CityPrice          = "",
                CountryPrice       = "",
                ShippingTimeDays   = "",
                CategoryIdMapping  = "",
                DefaultCategoryId  = "",
                BrandIdMapping     = "",
                DefaultBrandName   = "",
                LastAddedProductId = 0,
                FailedProductIds   = ""
            };

            _settingService.SaveSetting(settings);

            //install synchronization task
            if (_scheduleTaskService.GetTaskByType("Nop.Plugin.Misc.GittiGidiyor.Services.SynchronizationTask") == null)
            {
                _scheduleTaskService.InsertTask(new ScheduleTask
                {
                    Enabled = true,
                    Seconds = 12 * 60 * 60,
                    Name    = "Synchronization (GittiGidiyor plugin)",
                    Type    = "Nop.Plugin.Misc.GittiGidiyor.Services.SynchronizationTask",
                });
            }

            //locales
            #region locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.Title", "GittiGidiyor Plugin");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.ApiKey", "GittiGidiyor API Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.ApiKey.Hint", "Enter GittiGidiyor API Key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.SecretKey", "GittiGidiyor Secret Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.SecretKey.Hint", "Enter GittiGidiyor Secret Key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.RoleName", "GittiGidiyor Role Name");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.RoleName.Hint", "Enter GittiGidiyor Role Name.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.RolePass", "GittiGidiyor Role Pass");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.RolePass.Hint", "Enter GittiGidiyor Role Pass.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.ForceToSpecEntry", "GittiGidiyor Force To Spec Entry");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.ForceToSpecEntry.Hint", "Enter GittiGidiyor Force To Spec Entry.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.NextDateOption", "GittiGidiyor Next Date Option");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.NextDateOption.Hint", "Enter GittiGidiyor Next Date Option.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.Lang", "GittiGidiyor Lang");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.Lang.Hint", "Enter GittiGidiyor Lang.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.CargoCompany", "GittiGidiyor Cargo Company");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.CargoCompany.Hint", "Enter GittiGidiyor Cargo Company(aras: Aras Kargo, yurtici: Yurtiçi Kargo, ups: UPS Kargo, mng: MNG Kargo, ptt: PTT Kargo, other: Diğer kargo firması).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.CityPrice", "GittiGidiyor City Price");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.CityPrice.Hint", "Enter GittiGidiyor City Price(10.00).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.CountryPrice", "GittiGidiyor Country Price");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.CountryPrice.Hint", "Enter GittiGidiyor Country Price(10.00).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.ListingDays", "GittiGidiyor Listing Days");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.ListingDays.Hint", "Enter GittiGidiyor Listing Days(30,60,180,360).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.ShippingTimeDays", "GittiGidiyor Shipping Time Days");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.ShippingTimeDays.Hint", "Enter GittiGidiyor Shipping Time Days(today,tomorrow,2-3days,3-7days(Yalnızca mobilya kategorisi için)).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.DefaultCategoryId", "GittiGidiyor Default Category Id");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.DefaultCategoryId.Hint", "Enter GittiGidiyor Default Category Id.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.CategoryIdMapping", "GittiGidiyor Category Id Mapping");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.CategoryIdMapping.Hint", "Enter GittiGidiyor Category Id Mapping. {nopcommerce-category-id}=>{gittigidiyor-category-id};{nopcommerce-category-id}=>{gittigidiyor-category-id} Example: 1=>cnch4;2=>cnch6");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.DefaultBrandName", "GittiGidiyor Default Brand Name");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.DefaultBrandName.Hint", "Enter GittiGidiyor Default Brand Name.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.BrandIdMapping", "GittiGidiyor Brand Id Mapping");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Fields.BrandIdMapping.Hint", "Enter GittiGidiyor Brand Id Mapping. {nopcommerce-brand-id}=>{gittigidiyor-brand-name};{nopcommerce-brand-id}=>{gittigidiyor-brand-name} Example: 1=>Diğer;2=>Acar");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.Categories.ExportToExcel.All", "Export All GittiGidiyor Categories To Xlsx");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Misc.GittiGidiyor.Admin.CategoriesAttributes.ExportToExcel.All", "Export All GittiGidiyor Categories Attributes To Xlsx");
            #endregion

            base.Install();
        }
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new GTPayPaymentSettings
            {
                UseSandbox = true
            });

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.BusinessEmail", "Business Email");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.BusinessEmail.Hint", "Specify your GTPay business email.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.PassProductNamesAndTotals", "Pass product names and order totals to PayPal");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.PassProductNamesAndTotals.Hint", "Check if product names and order totals should be passed to PayPal.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.PDTToken", "PDT Identity Token");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.PDTToken.Hint", "Specify PDT identity token");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.RedirectionTip", "You will be redirected to GTPay site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.Instructions", @"
            <p>
	            <b>If you're using this gateway ensure that your primary store currency is supported by GTPay.</b>
	            <br />
            </p>");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.PaymentMethodDescription", "You will be redirected to GTPay site to complete the payment");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.GTPay.RoundingWarning", "It looks like you have \"ShoppingCartSettings.RoundPricesDuringCalculation\" setting disabled. Keep in mind that this can lead to a discrepancy of the order total amount, as GTPay only rounds to two decimals.");

            base.Install();
        }
예제 #15
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //database objects
            _objectContext.Install();

            //sample pickup point
            var country = _countryService.GetCountryByThreeLetterIsoCode("USA");
            var state   = _stateProvinceService.GetStateProvinceByAbbreviation("NY", country?.Id);

            var address = new Address
            {
                Address1        = "21 West 52nd Street",
                City            = "New York",
                CountryId       = country?.Id,
                StateProvinceId = state?.Id,
                ZipPostalCode   = "10021",
                CreatedOnUtc    = DateTime.UtcNow
            };

            _addressService.InsertAddress(address);

            var pickupPoint = new StorePickupPoint
            {
                Name         = "New York store",
                AddressId    = address.Id,
                OpeningHours = "10.00 - 19.00",
                PickupFee    = 1.99m
            };

            _storePickupPointService.InsertStorePickupPoint(pickupPoint);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.AddNew", "Add a new pickup point");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.Description", "Description");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.Description.Hint", "Specify a description of the pickup point.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.DisplayOrder", "Display order");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.DisplayOrder.Hint", "Specify the pickup point display order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.Name", "Name");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.Name.Hint", "Specify a name of the pickup point.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.OpeningHours", "Opening hours");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.OpeningHours.Hint", "Specify opening hours of the pickup point (Monday - Friday: 09:00 - 19:00 for example).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.PickupFee", "Pickup fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.PickupFee.Hint", "Specify a fee for the shipping to the pickup point.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.Store", "Store");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.Fields.Store.Hint", "A store name for which this pickup point will be available.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Pickup.PickupInStore.NoPickupPoints", "No pickup points are available");

            base.Install();
        }
예제 #16
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new UPSSettings
            {
                UseSandbox             = true,
                CustomerClassification = CustomerClassification.StandardListRates,
                PickupType             = PickupType.OneTimePickup,
                PackagingType          = PackagingType.ExpressBox,
                PackingPackageVolume   = 5184,
                PackingType            = PackingType.PackByDimensions,
                PassDimensions         = true
            });

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Enums.Nop.Plugin.Shipping.UPS.PackingType.PackByDimensions", "Pack by dimensions");
            _localizationService.AddOrUpdatePluginLocaleResource("Enums.Nop.Plugin.Shipping.UPS.PackingType.PackByOneItemPerPackage", "Pack by one item per package");
            _localizationService.AddOrUpdatePluginLocaleResource("Enums.Nop.Plugin.Shipping.UPS.PackingType.PackByVolume", "Pack by volume");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.AccessKey", "Access Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.AccessKey.Hint", "Specify UPS access key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.AccountNumber", "Account number");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.AccountNumber.Hint", "Specify UPS account number (required to get negotiated rates).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.AdditionalHandlingCharge", "Additional handling charge");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.AdditionalHandlingCharge.Hint", "Enter additional handling fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.AvailableCarrierServices", "Carrier Services");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.AvailableCarrierServices.Hint", "Select the services you want to offer to customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.CustomerClassification", "UPS Customer Classification");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.CustomerClassification.Hint", "Choose customer classification.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.InsurePackage", "Insure package");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.InsurePackage.Hint", "Check to insure packages.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackagingType", "UPS Packaging Type");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackagingType.Hint", "Choose UPS packaging type.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackingPackageVolume", "Package volume");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackingPackageVolume.Hint", "Enter your package volume.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackingType", "Packing type");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PackingType.Hint", "Choose preferred packing type.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PassDimensions", "Pass dimensions");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PassDimensions.Hint", "Check if you want to pass package dimensions when requesting rates.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.Password", "Password");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.Password.Hint", "Specify UPS password.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PickupType", "UPS Pickup Type");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.PickupType.Hint", "Choose UPS pickup type.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.SaturdayDeliveryEnabled", "Saturday Delivery enabled");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.SaturdayDeliveryEnabled.Hint", "Check to get rates for Saturday Delivery options.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.Tracing", "Tracing");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.Tracing.Hint", "Check if you want to record plugin tracing in System Log. Warning: The entire request and response XML will be logged (including AccessKey/Username,Password). Do not leave this enabled in a production environment.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.Username", "Username");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.Username.Hint", "Specify UPS username.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.UseSandbox", "Use sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.UseSandbox.Hint", "Check to use sandbox (testing environment).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Arrived", "Arrived");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Booked", "Booked");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Delivered", "Delivered");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Departed", "Departed");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Tracker.ExportScanned", "Export scanned");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Tracker.NotDelivered", "Not delivered");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Tracker.OriginScanned", "Origin scanned");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Tracker.Pickup", "Pickup");

            base.Install();
        }
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            _settingService.SaveSetting(new PaystackStandardPaymentSettings
            {
                UseSandbox = true
            });

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.AdditionalFee", "Additional fee");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.PassProductNamesAndTotals", "Pass product names and order totals to Paystack");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.PassProductNamesAndTotals.Hint", "Check if product names and order totals should be passed to Paystack.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.LiveSecretKey", "Live Secret Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.LiveSecretKey.Hint", "Specify Live Secret Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.TestSecretKey", "Test Secret Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.TestSecretKey.Hint", "Specify Test Secret Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.RedirectionTip", "You will be redirected to Paystack site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.Instructions", @"
            <p>
	            <b>If you're using this gateway ensure that your primary store currency is supported by Paystack.</b>
	            <br />
	            <br />To use Paystack, you must setup a Paystack account.  Follow these steps to configure your account for Paystack:<br />
	            <br />1. Log in to your Paystack account (click <a href=""https://dashboard.paystack.com/"" target=""_blank"">here</a> to create your account).
	            <br />2. Click the Settings link on the sidebar.
	            <br />3. Click the API Keys & Webhooks tab.
	            <br />4. Copy Secret Keys, regenerate new ones if you must.
                <br />5. Fill the form below.
	            <br />6. Click Save.
	            <br />
            </p>");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.PaymentMethodDescription", "You will be redirected to Paystack site to complete the payment");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PaystackStandard.RoundingWarning", "It looks like you have \"ShoppingCartSettings.RoundPricesDuringCalculation\" setting disabled. Keep in mind that this can lead to a discrepancy of the order total amount, as Paystack only rounds to two decimals.");

            base.Install();
        }
        public override void Install()
        {
            var settings = new PayEpaycoPaymentSettings()
            {
                PayEpaycoUri  = "https://secure.payco.co/checkout.php",
                AdditionalFee = 0,
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.AccountID.Hint", "Ingrese su AccountID de su cuenta de Epayco.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.AccountID", "AccountID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.Key.Hint", "Ingrese su llave Secreta.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.Key", "Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.Publickey.Hint", "Ingrese su llave publica.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.Publickey", "Publickey");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.RedirectionTip", "Será redirigido al sitio de Epayco Colombia para completar el pedido.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.PayEpaycoUri", "Pay URI");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.PayEpaycoUri.Hint", "Ingrese la Url de su plataforma de pagos Epayco.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.AdditionalFee", "Tarifa Adicional");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.AdditionalFee.Hint", "Ingrese una tarifa adicional para cobrar a sus clientes.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.UseSandbox.Hint", "Verificar habilitar Sandbox (Escenario de pruebas).");

            base.Install();
        }
예제 #19
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();
        }
예제 #20
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();
        }
예제 #21
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new PaytmPaymentSettings() //mayank
            {
                MerchantId         = "",
                MerchantKey        = "",
                Website            = "",
                IndustryTypeId     = "",
                PaymentUrl         = "",
                CallBackUrl        = _webHelper.GetStoreLocation(false) + "Plugins/PaymentPaytm/Return",
                TxnStatusUrl       = "",
                UseDefaultCallBack = true
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.RedirectionTip", "You will be redirected to Paytm site to complete the order.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.MerchantId", "Merchant ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.MerchantId.Hint", "Enter merchant ID.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.UseDefaultCallBack", "Default CallBack");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.UseDefaultCallBack.Hint", "Uncheck and use customized CallBack Url in below field.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.MerchantKey", "Merchant Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.MerchantKey.Hint", "Enter Merchant key.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.Website", "Website");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.Website.Hint", "Enter website param.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.IndustryTypeId", "Industry Type Id");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.IndustryTypeId.Hint", "Enter Industry Type Id.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.PaymentUrl", "Payment URL");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.PaymentUrl.Hint", "Select payment url.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.CallBackUrl", "Callback URL");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.CallBackUrl.Hint", "Enter call back url.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.TxnStatusUrl", "TxnStatus URL");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.TxnStatusUrl.Hint", "Enter TxnStatus back url.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.Paytm.PaymentMethodDescription", "Pay by Paytm Wallet / credit / debit card / Net Banking");
            base.Install();
        }
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            var settings = new SegmentAnalyticsSettings
            {
                SegmentId      = "",
                TrackingScript = @"<!-- Segment io -->
                <script type=""text/javascript"">
                !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error(""Segment snippet included twice."");else{analytics.invoked=!0;analytics.methods=[""trackSubmit"",""trackClick"",""trackLink"",""trackForm"",""pageview"",""identify"",""reset"",""group"",""track"",""ready"",""alias"",""debug"",""page"",""once"",""off"",""on""];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t,e){var n=document.createElement(""script"");n.type=""text/javascript"";n.async=!0;n.src=""https://cdn.segment.com/analytics.js/v1/""+t+""/analytics.min.js"";var a=document.getElementsByTagName(""script"")[0];a.parentNode.insertBefore(n,a);analytics._loadOptions=e};analytics.SNIPPET_VERSION=""4.1.0"";
                analytics.load(""YOUR_WRITE_KEY"");
                analytics.page();
                }}();
                </script>"
            };

            _settingService.SaveSetting(settings);

            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.SegmentId", "ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.SegmentId.Hint", "Enter Segment ID.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.TrackingScript", "Tracking code");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.TrackingScript.Hint", "Paste the tracking code generated by Segment here. {SEGMENTID} will be dynamically replaced.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.EnableEcommerce", "Enable eCommerce");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.EnableEcommerce.Hint", "Check to pass information about orders to SEgment eCommerce feature.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.UseJsToSendEcommerceInfo", "Use JS to send eCommerce info");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.UseJsToSendEcommerceInfo.Hint", "Check to use JS code to send eCommerce info from the order completed page. But in case of redirection payment methods some customers may skip it. Otherwise, e-commerce information will be sent using HTTP request. Information is sent each time an order is paid but UTM is not supported in this mode.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.IncludeCustomerId", "Include customer ID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.IncludeCustomerId.Hint", "Check to include customer identifier to script.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.IncludingTax", "Include tax");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.IncludingTax.Hint", "Check to include tax when generating tracking code for eCommerce part.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Widgets.SegmentAnalytics.Instructions", "<p>Clean, collect, and control your customer data with Segment. https://segment.com/ </p>");

            base.Install();
        }