DW.WeChatPayAPIv3ForAPP.AspNET.Core
1.0.0
dotnet add package DW.WeChatPayAPIv3ForAPP.AspNET.Core --version 1.0.0
NuGet\Install-Package DW.WeChatPayAPIv3ForAPP.AspNET.Core -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DW.WeChatPayAPIv3ForAPP.AspNET.Core" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DW.WeChatPayAPIv3ForAPP.AspNET.Core" Version="1.0.0" />
<PackageReference Include="DW.WeChatPayAPIv3ForAPP.AspNET.Core" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DW.WeChatPayAPIv3ForAPP.AspNET.Core --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DW.WeChatPayAPIv3ForAPP.AspNET.Core, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DW.WeChatPayAPIv3ForAPP.AspNET.Core@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DW.WeChatPayAPIv3ForAPP.AspNET.Core&version=1.0.0
#tool nuget:?package=DW.WeChatPayAPIv3ForAPP.AspNET.Core&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WeChatAPIv3ForAppWithNetCore
为APP写的微信支付APIv3版本的.NET Core接口
前言
整理了微信支付的统一下单、支付结果通知、订单查询接口。趁这几天有时间,整理了一下我的代码。
又把APP支付的退款接口、关闭订单整理了,把APP支付的后端接口整理了一下。
github仓库地址:https://github.com/wolfsheep/WeChatAPIv3ForAppWithNetCore
gitee仓库地址:https://gitee.com/dawenyang_admin/WeChatAPIv3ForAppWithNetCore
代码重构了一遍,更方便大家的使用。可能还有很多问题,欢迎大家反馈。
目录
理论实战
统一下单
查询订单
关闭订单
支付结果通知
申请退款
查询退款
退款结果通知
工具类方法
WxPayHelper.cs
Http请求方法
WxPayRequestHandler.cs
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
- Portable.BouncyCastle (>= 1.8.10)
- System.Security.Cryptography.Cng (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 981 | 4/5/2021 |
微信支付V3的后端接口,方便大家使用,有问题大家联系我.
邮箱:dawenyang0613@outlook.com