|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/a99112df/ca2a8923/ |
?#pragma checksum "D:\wwwroot\ldxynb\wwwroot\notify_alipay.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DD2804C373A69DC6C8D862273334D547"
#line 1 "D:\wwwroot\ldxynb\wwwroot\notify_alipay.aspx.cs"
using Aop.Api.Util;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
public partial class notify_alipay : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Dictionary<string, string> sArray = GetRequestPost();
if (sArray.Count != 0)
{
bool flag = AlipaySignature.RSACheckV1(sArray, AlipayConfig.alipayPublicKey, AlipayConfig.Charset, AlipayConfig.SignType,false);
if (flag)
{
//买卖状态
//判断该笔订单是否在商户网站中已经做过处置
//若是没有做过处置,凭据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的具体,并执行商户的业务法式
//请务必判断要求时的total_amount与通知时获取的total_fee为一致的
//若是有做过处置,不执行商户的业务法式
//把稳:
//退款日期超过可退款期限后(如三个月可退款),支付宝系统发送该买卖状态通知
string trade_status = Request.Form["trade_status"];
Response.Write("success");
}
else
{
Response.Write("fail");
}
}
}
public Dictionary<string, string> GetRequestPost()
{
int i = 0;
Dictionary<string, string> sArray = new Dictionary<string, string>();
NameValueCollection coll;
//coll = Request.Form;
coll = Request.Form;
String[] requestItem = coll.AllKeys;
for (i = 0; i < requestItem.Length; i++)
{
sArray.Add(requestItem[i], Request.Form[requestItem[i]]);
}
return sArray;
}
}
#line default
#line hidden