嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
微信支付V3 C#版底层实现
微信支付V3 C#版规则实现,使用户关注接口本身,不需要花费大精力去实现调用规则。
一、基本信息
代码搭建环境:
1.win10
2.vs2012(.net framework4)
二、解决方案
包含两个项目
1.Mirsh.Payment --WXPay API v2/v3底层实现
2.Mirsh.Payment.UnitTest --测试单元,用于功能测试
需注意Mirsh.Payment 依赖一下组件
/lib/Mirsh.dll --主要用到httpclient
/lib/BouncyCastle.Crypto.dll – 解密数据使用
/lib/Newtonsoft.Json.dll --json序列化与反序列化
.
├── 0.mirsh.payment
│ ├── Mirsh.Payment
│ │ ├── Mirsh.Payment.csproj
│ │ ├── Mirsh.Payment.csproj.user
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── WX
│ │ │ ├── GetPublicKeyResponse.cs
│ │ │ ├── Marketing
│ │ │ │ ├── CouponV3Api.cs
│ │ │ │ ├── MarketingApi.cs
│ │ │ │ ├── Request
│ │ │ │ │ ├── CreateStockRequest.cs
│ │ │ │ │ ├── OperateStockRequest.cs
│ │ │ │ │ ├── QueryByUseMchRequest.cs
│ │ │ │ │ ├── SendCouponRequest.cs
│ │ │ │ │ ├── StockEntityRequest.cs
│ │ │ │ │ └── StockListRequest.cs
│ │ │ │ └── Response
│ │ │ │ ├── OperateStockResponse.cs
│ │ │ │ ├── QueryByUseMchResponse.cs
│ │ │ │ ├── SendCouponResponse.cs
│ │ │ │ ├── StockEntityResponse.cs
│ │ │ │ ├── StockListResponse.cs
│ │ │ │ └── UploadImageResponse.cs
│ │ │ ├── PlatformCertificatesResponse.cs
│ │ │ ├── Utils
│ │ │ │ ├── AesGcm.cs
│ │ │ │ ├── WXApi.cs
│ │ │ │ ├── WXPlatform.cs
│ │ │ │ ├── WXSignType.cs
│ │ │ │ └── WXV3Api.cs
│ │ │ ├── WXPayRequest.cs
│ │ │ ├── WXPayResponse.cs
│ │ │ ├── WXV3HeaderInfo.cs
│ │ │ ├── WXV3NotifyPostInfo.cs
│ │ │ ├── WXV3PageResponse.cs
│ │ │ ├── WXV3Response.cs
│ │ │ ├── WXV3UploadRequest.cs
│ │ │ └── WXV3UploadResponse.cs
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ │ ├── BouncyCastle.Crypto - 副本.dll
│ │ │ │ ├── BouncyCastle.Crypto.dll
│ │ │ │ ├── Mirsh.Payment.XML
│ │ │ │ ├── Mirsh.Payment.dll
│ │ │ │ ├── Mirsh.Payment.pdb
│ │ │ │ ├── Mirsh.dll
│ │ │ │ ├── Mirsh.xml
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ └── Release
│ │ ├── lib
│ │ │ ├── BouncyCastle.Crypto.dll
│ │ │ ├── Mirsh.XML
│ │ │ ├── Mirsh.dll
│ │ │ └── Newtonsoft.Json.dll
│ │ └── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── Mirsh.Payment.csproj.FileListAbsolute.txt
│ │ ├── Mirsh.Payment.csprojResolveAssemblyReference.cache
│ │ ├── Mirsh.Payment.dll
│ │ ├── Mirsh.Payment.pdb
│ │ └── TempPE
│ ├── Mirsh.Payment.UnitTest
│ │ ├── 1_Basic.cs
│ │ ├── Mirsh.Payment.UnitTest.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── bin
│ │ │ ├── Debug
│ │ │ │ ├── BouncyCastle.Crypto.dll
│ │ │ │ ├── Mirsh.Payment.UnitTest.dll
│ │ │ │ ├── Mirsh.Payment.UnitTest.pdb
│ │ │ │ ├── Mirsh.Payment.dll
│ │ │ │ ├── Mirsh.Payment.pdb
│ │ │ │ ├── Mirsh.Payment.xml
│ │ │ │ ├── Mirsh.dll
│ │ │ │ ├── Mirsh.xml
│ │ │ │ └── Newtonsoft.Json.dll
│ │ │ └── Release
│ │ └── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── Mirsh.Payment.UnitTest.csproj.FileListAbsolute.txt
│ │ ├── Mirsh.Payment.UnitTest.csprojResolveAssemblyReference.cache
│ │ ├── Mirsh.Payment.UnitTest.dll
│ │ ├── Mirsh.Payment.UnitTest.pdb
│ │ ├── TempPE
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ ├── OpenSource.Mirsh.Payment.sln
│ ├── OpenSource.Mirsh.Payment.v11.suo
│ └── lib
│ ├── BouncyCastle.Crypto.dll
│ ├── Mirsh.Payment.XML
│ ├── Mirsh.Payment.dll
│ ├── Mirsh.XML
│ ├── Mirsh.dll
│ └── Newtonsoft.Json.dll
└── 微信支付V3 C#版底层实现.rar
24 directories, 78 files