@using SmartStore.Web.Framework; @using SmartStore.Web.Framework.UI; @using SmartStore.AmazonPay.Models; @using SmartStore.AmazonPay.Extensions; @model ConfigurationModel @{ Layout = ""; Html.AddCssFileParts(true, Url.Content("~/Plugins/SmartStore.AmazonPay/Content/smartstore.amazonpay.css")); Html.AddScriptParts(true, Url.Content("~/Plugins/SmartStore.AmazonPay/Scripts/smartstore.amazonpay.js")); }
@Html.Raw(@T("Plugins.Payments.AmazonPay.AdminInstruction"))
@Html.Action("StoreScopeConfiguration", "Setting", new { area = "Admin" }) @using (Html.BeginForm()) {
@Model.ConfigGroups.SafeGet(0)
@Html.SmartLabelFor(model => model.UseSandbox) @Html.SettingEditorFor(model => model.UseSandbox) @Html.ValidationMessageFor(model => model.UseSandbox)
@Html.SmartLabelFor(model => model.SellerId) @Html.SettingEditorFor(model => model.SellerId) @Html.ValidationMessageFor(model => model.SellerId)
@Html.SmartLabelFor(model => model.AccessKey) @Html.SettingEditorFor(model => model.AccessKey) @Html.ValidationMessageFor(model => model.AccessKey)
@Html.SmartLabelFor(model => model.SecretKey) @Html.SettingEditorFor(model => model.SecretKey) @Html.ValidationMessageFor(model => model.SecretKey)
@Html.SmartLabelFor(model => model.Marketplace) @Html.SettingOverrideCheckbox(model => model.Marketplace) @Html.DropDownListFor(model => model.Marketplace, new List() { new SelectListItem { Text = @T("Plugins.Payments.AmazonPay.Marketplace.De"), Value = "de" }, new SelectListItem { Text = @T("Plugins.Payments.AmazonPay.Marketplace.Uk"), Value = "uk" } }) @Html.ValidationMessageFor(model => model.Marketplace)
@Model.ConfigGroups.SafeGet(1)
@Html.SmartLabelFor(model => model.TransactionType) @Html.SettingOverrideCheckbox(model => model.TransactionType) @Html.DropDownListFor(model => model.TransactionType, Model.TransactionTypes) @Html.ValidationMessageFor(model => model.TransactionType)
@T("Plugins.Payments.AmazonPay.TransactionType.Warning")
@Html.SmartLabelFor(model => model.SaveEmailAndPhone) @Html.SettingOverrideCheckbox(model => model.SaveEmailAndPhone) @Html.DropDownListFor(model => model.SaveEmailAndPhone, Model.SaveEmailAndPhones) @Html.ValidationMessageFor(model => model.SaveEmailAndPhone)
@Html.SmartLabelFor(model => model.AddOrderNotes) @Html.SettingEditorFor(model => model.AddOrderNotes) @Html.ValidationMessageFor(model => model.AddOrderNotes)
@Html.SmartLabelFor(model => model.InformCustomerAboutErrors) @Html.SettingEditorFor(model => model.InformCustomerAboutErrors) @Html.ValidationMessageFor(model => model.InformCustomerAboutErrors)
@Html.SmartLabelFor(model => model.InformCustomerAddErrors) @Html.SettingEditorFor(model => model.InformCustomerAddErrors) @Html.ValidationMessageFor(model => model.InformCustomerAddErrors)
@Html.SmartLabelFor(model => model.DataFetching) @Html.DropDownListFor(model => model.DataFetching, Model.DataFetchings) @Html.ValidationMessageFor(model => model.DataFetching)
@Html.SmartLabelFor(model => model.IpnUrl) @Html.DisplayFor(model => model.IpnUrl)
@Html.SmartLabelFor(model => model.PollingTaskMinutes) @Html.EditorFor(model => model.PollingTaskMinutes) @Html.ValidationMessageFor(model => model.PollingTaskMinutes)
@Html.SmartLabelFor(model => model.PollingMaxOrderCreationDays) @Html.EditorFor(model => model.PollingMaxOrderCreationDays) @Html.ValidationMessageFor(model => model.PollingMaxOrderCreationDays)
@T("Plugins.Payments.AmazonPay.DataFetching.Warning")
@Model.ConfigGroups.SafeGet(2)
@Html.SmartLabelFor(model => model.AmazonButtonColor) @Html.SettingOverrideCheckbox(model => model.AmazonButtonColor) @Html.DropDownListFor(model => model.AmazonButtonColor, new List() { new SelectListItem { Text = @T("Plugins.Payments.AmazonPay.AmazonButtonColor.Orange"), Value = "orange" }, new SelectListItem { Text = @T("Plugins.Payments.AmazonPay.AmazonButtonColor.Tan"), Value = "tan" } }) @Html.ValidationMessageFor(model => model.AmazonButtonColor)
@Html.SmartLabelFor(model => model.AmazonButtonSize) @Html.SettingOverrideCheckbox(model => model.AmazonButtonSize) @Html.DropDownListFor(model => model.AmazonButtonSize, new List() { new SelectListItem { Text = @T("Plugins.Payments.AmazonPay.AmazonButtonSize.Medium"), Value = "medium" }, new SelectListItem { Text = @T("Plugins.Payments.AmazonPay.AmazonButtonSize.Large"), Value = "large" }, new SelectListItem { Text = @T("Plugins.Payments.AmazonPay.AmazonButtonSize.Xlarge"), Value = "x-large" } }) @Html.ValidationMessageFor(model => model.AmazonButtonSize)
@Html.SmartLabelFor(model => model.AddressWidgetWidth) @Html.SettingEditorFor(model => model.AddressWidgetWidth) @Html.ValidationMessageFor(model => model.AddressWidgetWidth)
@Html.SmartLabelFor(model => model.AddressWidgetHeight) @Html.SettingEditorFor(model => model.AddressWidgetHeight) @Html.ValidationMessageFor(model => model.AddressWidgetHeight)
@Html.SmartLabelFor(model => model.PaymentWidgetWidth) @Html.SettingEditorFor(model => model.PaymentWidgetWidth) @Html.ValidationMessageFor(model => model.PaymentWidgetWidth)
@Html.SmartLabelFor(model => model.PaymentWidgetHeight) @Html.SettingEditorFor(model => model.PaymentWidgetHeight) @Html.ValidationMessageFor(model => model.PaymentWidgetHeight)
@Model.ConfigGroups.SafeGet(3)
@Html.SmartLabelFor(model => model.ShowButtonInMiniShoppingCart) @Html.SettingEditorFor(model => model.ShowButtonInMiniShoppingCart) @Html.ValidationMessageFor(model => model.ShowButtonInMiniShoppingCart)
@Html.SmartLabelFor(model => model.AdditionalFee) @Html.SettingEditorFor(model => model.AdditionalFee) @Html.ValidationMessageFor(model => model.AdditionalFee)
@Html.SmartLabelFor(model => model.AdditionalFeePercentage) @Html.SettingEditorFor(model => model.AdditionalFeePercentage) @Html.ValidationMessageFor(model => model.AdditionalFeePercentage)
@T("Plugins.Payments.AmazonPay.AdditionalFee.Warning")
 
}