Exemple #1
0
        /// <summary>
        /// 获取是否是支付宝服务器发来的请求的验证结果
        /// </summary>
        /// <param name="notifyId">通知验证ID</param>
        /// <param name="veryfyUrl">支付宝消息验证地址</param>
        /// <param name="partner">收款支付宝帐户ID</param>
        /// <returns>验证结果</returns>
        private static string GetResponseTxt(string notifyId, string veryfyUrl, string partner)
        {
            string veryfy_url = string.Format("{0}partner={1}&notify_id={2}", veryfyUrl, partner, notifyId);

            //获取远程服务器ATN结果,验证是否是支付宝服务器发来的请求
            string responseTxt = AlipayCore.Get_Http(veryfy_url, 120000);

            return(responseTxt);
        }
Exemple #2
0
        /// <summary>
        /// 获取是否是支付宝服务器发来的请求的验证结果
        /// </summary>
        /// <param name="notify_id">通知验证ID</param>
        /// <returns>验证结果</returns>
        private static string GetAppResponseTxt(string notify_id, string appVeryfyUrl, string partner)
        {
            string veryfy_url = appVeryfyUrl + "partner=" + partner + "&notify_id=" + notify_id;

            //获取远程服务器ATN结果,验证是否是支付宝服务器发来的请求
            string responseTxt = AlipayCore.Get_Http(veryfy_url, 120000);

            return(responseTxt);
        }