ToolNET.AliPay 5.1.0

.NET 5.0
dotnet add package ToolNET.AliPay --version 5.1.0
NuGet\Install-Package ToolNET.AliPay -Version 5.1.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="ToolNET.AliPay" Version="5.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ToolNET.AliPay --version 5.1.0
#r "nuget: ToolNET.AliPay, 5.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ToolNET.AliPay as a Cake Addin
#addin nuget:?package=ToolNET.AliPay&version=5.1.0

// Install ToolNET.AliPay as a Cake Tool
#tool nuget:?package=ToolNET.AliPay&version=5.1.0

1.配置文件格式:

{
  "AliPayOptions": {
    "AlipayPublicKey": "支付宝公钥",
    "AppId": "应用id",
    "CharSet": "密钥编码",
    "Gatewayurl": "支付网关",
    "PrivateKey": "商家私钥",
    "SignType": "签名方式",
    "Uid": "商户ID"
  }
}

2.配置文件

配置中心或本地配置文件,必须按以上配置格式进行

3.服务注入

services.AddAliPayService(); //单例注入

4.服务使用

AliPayService

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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
5.1.0 115 12/9/2022
5.0.6 199 9/21/2022
5.0.5 218 9/7/2022
5.0.4 207 8/30/2022
5.0.3 211 8/29/2022
5.0.2 216 8/22/2022
5.0.1 218 8/22/2022
5.0.0 255 2/23/2022