using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings;
using NopSolutions.NopCommerce.Web.Templates.Payment;
namespace NopSolutions.NopCommerce.Web.Administration.Payment.Alipay{
public partial class HostedPaymentConfig : BaseNopAdministrationUserControl, IConfigurePaymentMethodModule
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
txtSellerEmail.Text = SettingManager.GetSettingValue("PaymentMethod.Alipay.SellerEmail");
txtKey.Text = SettingManager.GetSettingValue("PaymentMethod.Alipay.Key");
txtPartner.Text = SettingManager.GetSettingValue("PaymentMethod.Alipay.Partner");
txtAdditionalFee.Value = SettingManager.GetSettingValueDecimalNative("PaymentMethod.Alipay.AdditionalFee");
}
}
public void Save()
{
SettingManager.SetParam("PaymentMethod.Alipay.SellerEmail", txtSellerEmail.Text);
SettingManager.SetParam("PaymentMethod.Alipay.Key", txtKey.Text);
SettingManager.SetParam("PaymentMethod.Alipay.Partner", txtPartner.Text);
SettingManager.SetParamNative("PaymentMethod.Alipay.AdditionalFee", txtAdditionalFee.Value);
}
}
}
|