AlipaySDKNet.Core 5.0.1

dotnet add package AlipaySDKNet.Core --version 5.0.1
                    
NuGet\Install-Package AlipaySDKNet.Core -Version 5.0.1
                    
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="AlipaySDKNet.Core" Version="5.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AlipaySDKNet.Core" Version="5.0.1" />
                    
Directory.Packages.props
<PackageReference Include="AlipaySDKNet.Core" />
                    
Project file
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 AlipaySDKNet.Core --version 5.0.1
                    
#r "nuget: AlipaySDKNet.Core, 5.0.1"
                    
#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 AlipaySDKNet.Core@5.0.1
                    
#: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=AlipaySDKNet.Core&version=5.0.1
                    
Install as a Cake Addin
#tool nuget:?package=AlipaySDKNet.Core&version=5.0.1
                    
Install as a Cake Tool

支付宝开放平台服务端SDK FOR .NET

Alipay SDK for .NET,SDK可以自动帮您满足能力调用过程中所需的证书校验、加签、验签、发送HTTP请求等非功能性要求。

支付宝目前提供 v2v3 两个版本SDK,根据您的习惯自由选择。

v2 & v3

v2版本将会发起基于v2协议的OpenAPI,v3版本将会发起基于v3协议的OpenAPI。

关于v3协议

相较于v2协议的支付宝API,主要区别是:

  • 使用RESTful设计风格,并通过OpenAPI规范(OAS)描述接口
  • 使用JSON作为数据交互的格式,不再使用XML和表单格式
  • 简化加验签逻辑,对http报文整体加验签
  • 简化加解密、文件上传等规范

更多有关v3协议的内容,可前往 支付宝开发文档 了解更多。

关于OpenAPI规范(OAS)

OpenAPI规范(OAS),是定义一个标准的、与具体编程语言无关的RESTful API的规范,您可查阅 OAS官网 了解更多。

利用支付宝提供的OpenAPI描述文件,您可以用代码生成工具来自动生成各种编程语言代码,用自动测试工具进行测试等等。

v3 SDK是基于 OpenAPI描述文件 、使用 OpenAPI Generator 生成的。

问题

不管您在使用SDK的过程中遇到任何问题,欢迎前往 支付宝开放社区 发帖与支付宝工作人员和其他开发者一起交流。

注:为了提高开发者问题的响应时效,github本身的issue功能已关闭,支付宝开放社区中发帖的问题,通常会在2小时内响应。

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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.0.1 4,610 2/19/2025
5.0.0 435 2/10/2025 5.0.0 is deprecated because it has critical bugs.
4.9.401 304 2/10/2025
4.6.398 15,502 8/11/2022