实例介绍
简单封装了微信和支付宝的扫码支付功能,两个支付继承同一套接口,上传的类库已经把接口剥离了,调用简单,如下: private void Form1_Load(object sender, EventArgs e) { PayParament p = new PayParament() //商品属性 { Body = "sss", GoodsTag = "ddd", OrderId = "365216541",
【实例截图】
【核心代码】
微信阿里支付
└── 微信阿里支付
└── Solution1
├── PayAPI.Ali
│ ├── AliConfig.cs
│ ├── AlipayF2F.cs
│ ├── bin
│ │ ├── Debug
│ │ │ ├── AopSdk.dll
│ │ │ ├── F2FPayDll.dll
│ │ │ ├── JTD.PeripheralsInterface.dll
│ │ │ ├── JTD.PeripheralsInterfaceModel.dll
│ │ │ ├── JTD.PeripheralsInterfaceModel.pdb
│ │ │ ├── JTD.PeripheralsInterface.pdb
│ │ │ ├── JTD.Peripherals.PayAPI.Ali.dll
│ │ │ └── JTD.Peripherals.PayAPI.Ali.pdb
│ │ └── Release
│ │ ├── AopSdk.dll
│ │ ├── F2FPayDll.dll
│ │ ├── JTD.PeripheralsInterface.dll
│ │ ├── JTD.PeripheralsInterfaceModel.dll
│ │ ├── JTD.PeripheralsInterfaceModel.pdb
│ │ ├── JTD.PeripheralsInterface.pdb
│ │ ├── JTD.Peripherals.PayAPI.Ali.dll
│ │ ├── JTD.Peripherals.PayAPI.Ali.pdb
│ │ ├── Libs
│ │ │ ├── AopSdk.dll
│ │ │ └── F2FPayDll.dll
│ │ ├── PayAPI.Ali.dll
│ │ ├── PayAPI.Ali.pdb
│ │ ├── PayAPI.Entity.dll
│ │ ├── PayAPI.Entity.pdb
│ │ └── rsa
│ │ ├── alipay_rsa_public_key.pem
│ │ ├── rsa_private_key.pem
│ │ └── rsa_public_key.pem
│ ├── Libs
│ │ ├── AopSdk.dll
│ │ └── F2FPayDll.dll
│ ├── obj
│ │ ├── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── JTD.Peripherals.PayAPI.Ali.csproj.FileListAbsolute.txt
│ │ │ ├── JTD.Peripherals.PayAPI.Ali.dll
│ │ │ ├── JTD.Peripherals.PayAPI.Ali.pdb
│ │ │ ├── PayAPI.Ali.csproj.FileListAbsolute.txt
│ │ │ ├── PayAPI.Ali.dll
│ │ │ ├── PayAPI.Ali.pdb
│ │ │ └── ResolveAssemblyReference.cache
│ │ └── Release
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── JTD.Peripherals.PayAPI.Ali.csproj.FileListAbsolute.txt
│ │ ├── JTD.Peripherals.PayAPI.Ali.dll
│ │ ├── JTD.Peripherals.PayAPI.Ali.pdb
│ │ ├── PayAPI.Ali.csproj.FileListAbsolute.txt
│ │ ├── PayAPI.Ali.dll
│ │ ├── PayAPI.Ali.pdb
│ │ └── ResolveAssemblyReference.cache
│ ├── PayAPI.Ali.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── rsa
│ ├── alipay_rsa_public_key.pem
│ ├── rsa_private_key.pem
│ └── rsa_public_key.pem
├── PayAPI.Entity
│ ├── bin
│ │ ├── Debug
│ │ │ ├── PayAPI.Entity.dll
│ │ │ └── PayAPI.Entity.pdb
│ │ └── Release
│ │ ├── PayAPI.Entity.dll
│ │ └── PayAPI.Entity.pdb
│ ├── obj
│ │ ├── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── JTD.Peripherals.PayAPI.Entity.csproj.FileListAbsolute.txt
│ │ │ ├── PayAPI.Entity.csproj.FileListAbsolute.txt
│ │ │ ├── PayAPI.Entity.dll
│ │ │ └── PayAPI.Entity.pdb
│ │ └── Release
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── PayAPI.Entity.csproj.FileListAbsolute.txt
│ │ ├── PayAPI.Entity.dll
│ │ └── PayAPI.Entity.pdb
│ ├── PayAPI.Entity.csproj
│ ├── PayProduct.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── QueryPayState.cs
│ └── QueryQRcode.cs
├── PayApiInterface
│ ├── IPay.cs
│ ├── obj
│ │ └── Debug
│ │ └── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── PayApiInterface.csproj
│ └── Properties
│ └── AssemblyInfo.cs
├── PayAPI.WeiXin
│ ├── APIFunction.cs
│ ├── bin
│ │ ├── Debug
│ │ │ ├── JTD.PeripheralsInterface.dll
│ │ │ ├── JTD.PeripheralsInterfaceModel.dll
│ │ │ ├── JTD.PeripheralsInterfaceModel.pdb
│ │ │ ├── JTD.PeripheralsInterface.pdb
│ │ │ ├── JTD.Peripherals.PayAPI.WeiXin.dll
│ │ │ ├── JTD.Peripherals.PayAPI.WeiXin.pdb
│ │ │ ├── JTD.PublicLibs.Utility.dll
│ │ │ ├── JTD.PublicLibs.Utility.pdb
│ │ │ ├── LitJson.dll
│ │ │ ├── log4net.dll
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ ├── QRCodeProvider.dll
│ │ │ └── QRCodeProvider.pdb
│ │ └── Release
│ │ ├── JTD.Lushan.Utility.dll
│ │ ├── JTD.Lushan.Utility.pdb
│ │ ├── JTD.PeripheralsInterface.dll
│ │ ├── JTD.PeripheralsInterfaceModel.dll
│ │ ├── JTD.PeripheralsInterfaceModel.pdb
│ │ ├── JTD.PeripheralsInterface.pdb
│ │ ├── JTD.Peripherals.PayAPI.WeiXin.dll
│ │ ├── JTD.Peripherals.PayAPI.WeiXin.pdb
│ │ ├── Libs
│ │ │ └── LitJson.dll
│ │ ├── LitJson.dll
│ │ ├── log4net.dll
│ │ ├── Newtonsoft.Json.dll
│ │ ├── PayAPI.Entity.dll
│ │ ├── PayAPI.Entity.pdb
│ │ ├── PayAPI.WeiXin.dll
│ │ ├── PayAPI.WeiXin.pdb
│ │ ├── QRCodeProvider.dll
│ │ └── QRCodeProvider.pdb
│ ├── HttpService.cs
│ ├── Libs
│ │ └── LitJson.dll
│ ├── NativePay.cs
│ ├── Notify.cs
│ ├── obj
│ │ ├── Debug
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── JTD.Peripherals.PayAPI.WeiXin.csproj.FileListAbsolute.txt
│ │ │ ├── PayAPI.WeiXin.csproj.FileListAbsolute.txt
│ │ │ ├── PayAPI.WeiXin.dll
│ │ │ ├── PayAPI.WeiXin.pdb
│ │ │ └── ResolveAssemblyReference.cache
│ │ └── Release
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── JTD.Peripherals.PayAPI.WeiXin.csproj.FileListAbsolute.txt
│ │ ├── JTD.Peripherals.PayAPI.WeiXin.dll
│ │ ├── JTD.Peripherals.PayAPI.WeiXin.pdb
│ │ ├── PayAPI.WeiXin.csproj.FileListAbsolute.txt
│ │ ├── PayAPI.WeiXin.dll
│ │ ├── PayAPI.WeiXin.pdb
│ │ └── ResolveAssemblyReference.cache
│ ├── PayAPI.WeiXin.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── ResultNotify.cs
│ ├── WxPayApi.cs
│ ├── WxPayConfig.cs
│ ├── WxPayData.cs
│ └── WxPayException.cs
├── Solution1.sln
├── Solution1.suo
└── WindowsFormsApplication1
├── app.config
├── bin
│ └── Release
│ ├── WindowsFormsApplication1.exe.config
│ ├── WindowsFormsApplication1.vshost.exe.config
│ └── WindowsFormsApplication1.vshost.exe.manifest
├── Form1.cs
├── Form1.Designer.cs
├── Form1.resx
├── obj
│ └── x86
│ ├── Debug
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── GenerateResource.read.1.tlog
│ │ ├── GenerateResource.write.1.tlog
│ │ ├── ResolveAssemblyReference.cache
│ │ ├── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── WindowsFormsApplication1.csproj.FileListAbsolute.txt
│ │ ├── WindowsFormsApplication1.exe
│ │ ├── WindowsFormsApplication1.Form1.resources
│ │ ├── WindowsFormsApplication1.pdb
│ │ └── WindowsFormsApplication1.Properties.Resources.resources
│ └── Release
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── GenerateResource.read.1.tlog
│ ├── GenerateResource.write.1.tlog
│ ├── ResolveAssemblyReference.cache
│ ├── WindowsFormsApplication1.csproj.FileListAbsolute.txt
│ ├── WindowsFormsApplication1.exe
│ ├── WindowsFormsApplication1.Form1.resources
│ ├── WindowsFormsApplication1.pdb
│ └── WindowsFormsApplication1.Properties.Resources.resources
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
└── WindowsFormsApplication1.csproj
45 directories, 165 files
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论