Beispiel #1
0
        public void Submit_OnClick(object sender, EventArgs e)
        {
            _configInfo.IsAlipayPc = Utils.ToBool(DdlIsEnabled.SelectedValue);
            if (_configInfo.IsAlipayPc && PhOpenApi.Visible)
            {
                try
                {
                    AlipaySignature.RSASignCharSet("test", TbPrivateKey.Text, "utf-8", false, "RSA2");
                }
                catch (Exception ex)
                {
                    Utils.SwalError(Page, "应用私钥格式不正确!", ex.Message);
                    return;
                }
            }

            _configInfo.AlipayPcIsMApi     = Utils.ToBool(DdlIsMApi.SelectedValue);
            _configInfo.AlipayPcAppId      = TbAppId.Text;
            _configInfo.AlipayPcPid        = TbPid.Text;
            _configInfo.AlipayPcMd5        = TbMd5.Text;
            _configInfo.AlipayPcPublicKey  = TbPublicKey.Text;
            _configInfo.AlipayPcPrivateKey = TbPrivateKey.Text;

            Plugin.SetConfigInfo(_siteId, _configInfo);

            Utils.Redirect(PageIntegrationPay.GetRedirectUrl(_siteId));
        }
        public void Submit_OnClick(object sender, EventArgs e)
        {
            _configInfo.IsJdpay = Utils.ToBool(DdlIsEnabled.SelectedValue);
            //if (_configInfo.IsJdpay)
            //{
            //    try
            //    {
            //        AlipaySignature.RSASignCharSet("test", TbPrivateKey.Text, "utf-8", false, "RSA2");
            //    }
            //    catch (Exception ex)
            //    {
            //        SwalError("应用私钥格式不正确!", ex.Message);
            //        return;
            //    }
            //}

            _configInfo.JdpayMerchant   = TbMerchant.Text;
            _configInfo.JdpayUserId     = TbUserId.Text;
            _configInfo.JdpayMd5Key     = TbMd5Key.Text;
            _configInfo.JdpayDesKey     = TbDesKey.Text;
            _configInfo.JdpayPublicKey  = TbPublicKey.Text;
            _configInfo.JdpayPrivateKey = TbPrivateKey.Text;

            Plugin.SetConfigInfo(_siteId, _configInfo);

            Utils.Redirect(PageIntegrationPay.GetRedirectUrl(_siteId));
        }
Beispiel #3
0
        public void Submit_OnClick(object sender, EventArgs e)
        {
            _configInfo.IsWeixin        = Utils.ToBool(DdlIsEnabled.SelectedValue);
            _configInfo.WeixinAppId     = TbAppId.Text;
            _configInfo.WeixinAppSecret = TbAppSecret.Text;
            _configInfo.WeixinMchId     = TbMchId.Text;
            _configInfo.WeixinKey       = TbKey.Text;

            Main.SetConfigInfo(_siteId, _configInfo);

            Utils.Redirect(PageIntegrationPay.GetRedirectUrl(_siteId));
        }
Beispiel #4
0
 public void BtnReturn_OnClick(object sender, EventArgs e)
 {
     Utils.Redirect(PageIntegrationPay.GetRedirectUrl(_siteId));
 }