资源简介

提示:需将 config.cs中的 配置信息 改成自己申请的 支付宝信息 即可。


一、免责申明

DEMO仅供参考,实际开发中需要结合具体业务场景修改使用。

二、运行环境:
.net framework 3.5以上;visual studio 2010以上

三、使用说明参考《支付宝demo使用说明》

四、数据模型参考《当面付对外数据模型&调用流程(.net)》


代码片段和文件信息

using System.Web;
using System.Text;
using System.Security.Cryptography;
using System.IO;
using System.Net;
using System;
using System.Collections.Generic;
using System.xml;

namespace Com.Alipay
{
    /// 
    /// 类名:Core
    /// 功能:支付宝接口公用函数类
    /// 详细:该类是请求、通知返回两个文件所调用的公用函数核心处理文件,不需要修改
    /// 版本:3.4
    /// 修改日期:2015-06-05
    /// 说明:
    /// 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写并非一定要使用该代码。
    /// 该代码仅供学习和研究支付宝接口使用,只是提供一个参考。
    /// 

    public class Core
    {

        public Core()
        {
        }

        /// 
        /// 除去数组中的空值和签名参数并以字母a到z的顺序排序
        /// 

        /// 过滤前的参数组
        /// 过滤后的参数组
        public static Dictionary FilterPara(SortedDictionary

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-12-14 16:41  Projects\
     目录           0  2016-12-06 21:57  Projects\Alipay-demo-project\
     文件        6148  2016-07-28 12:54  Projects\Alipay-demo-project\.DS_Store
     目录           0  2016-12-06 21:57  Projects\Alipay-demo-project\.vs\
     目录           0  2016-12-06 21:57  Projects\Alipay-demo-project\.vs\WebSite3\
     目录           0  2016-12-06 21:57  Projects\Alipay-demo-project\.vs\WebSite3\v14\
     文件      491520  2016-10-11 00:10  Projects\Alipay-demo-project\.vs\WebSite3\v14\.suo
     目录           0  2016-12-06 21:57  Projects\Alipay-demo-project\F2FPayDll\
     目录           0  2016-12-06 21:57  Projects\Alipay-demo-project\F2FPayDll\bin\
     目录           0  2017-03-27 18:04  Projects\Alipay-demo-project\F2FPayDll\bin\Debug\
     文件     2045440  2017-03-27 18:04  Projects\Alipay-demo-project\F2FPayDll\bin\Debug\AopSdk.dll
     文件     4023808  2017-03-27 18:04  Projects\Alipay-demo-project\F2FPayDll\bin\Debug\AopSdk.pdb
     文件       25600  2017-03-27 18:04  Projects\Alipay-demo-project\F2FPayDll\bin\Debug\F2FPayDll.dll
     文件       69120  2017-03-27 18:04  Projects\Alipay-demo-project\F2FPayDll\bin\Debug\F2FPayDll.pdb
     文件     6205440  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\bin\Debug\ThoughtWorks.QRCode.dll
     目录           0  2016-12-06 21:57  Projects\Alipay-demo-project\F2FPayDll\Business\
     文件        4542  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\AlipayCore.cs
     文件        1030  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\AlipayF2FMonitorResult.cs
     文件        1013  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\AlipayF2FPayResult.cs
     文件        1184  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\AlipayF2FPrepayResult.cs
     文件        1313  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\AlipayF2FQueryResult.cs
     文件        1173  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\AlipayF2FRefundResult.cs
     文件        1453  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\AlipayMonitorImpl.cs
     文件        7515  2016-12-14 17:08  Projects\Alipay-demo-project\F2FPayDll\Business\Alipaynotify.cs
     文件       13960  2016-12-14 17:15  Projects\Alipay-demo-project\F2FPayDll\Business\AlipayTradeImpl.cs
     文件         890  2016-12-12 16:25  Projects\Alipay-demo-project\F2FPayDll\Business\F2FBiz.cs
     文件         917  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\F2FMonitor.cs
     文件         345  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\F2FResult.cs
     文件         425  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\IAlipayMonitor.cs
     文件        1000  2016-03-22 17:46  Projects\Alipay-demo-project\F2FPayDll\Business\IAlipayTradeService.cs
     目录           0  2016-12-06 21:57  Projects\Alipay-demo-project\F2FPayDll\Domain\
............此处省略2017个文件信息

评论

共有 条评论