AlipaySDKNet.Standard 4.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package AlipaySDKNet.Standard --version 4.1.2                
NuGet\Install-Package AlipaySDKNet.Standard -Version 4.1.2                
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.Standard" Version="4.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AlipaySDKNet.Standard --version 4.1.2                
#r "nuget: AlipaySDKNet.Standard, 4.1.2"                
#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.
// Install AlipaySDKNet.Standard as a Cake Addin
#addin nuget:?package=AlipaySDKNet.Standard&version=4.1.2

// Install AlipaySDKNet.Standard as a Cake Tool
#tool nuget:?package=AlipaySDKNet.Standard&version=4.1.2                

Project Description

支付宝开放平台官方SDK,基于.Net Standard 2.0开发,支持符合.Net Standard 2.0规范的微软跨平台框架(比如.Net Framework >= 4.6.1、.Net Core >= 2.0等)。

注意:

  • 如果您采用的是较低版本的.Net Framework(3.5 ~4.6),请使用专为.Net Framework框架打包的AlipayNetSDK

  • .Net Core框架中没有直接支持GBK编码,如需使用GBK编码,请在系统启动时调用如下代码(只需调用一次),扩展框架支持的字符编码集。

 Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

支付宝开放平台

Example

//设置证书相关参数
CertParams certParams = new CertParams
{
    AlipayPublicCertPath = "支付宝公钥证书路径",
    AppCertPath = "商户应用证书路径",
    RootCertPath = "支付宝根证书路径"
};

IAopClient client = new DefaultAopClient("https://openapi.alipay.com/gateway.do", APPID, APP_PRIVATE_KEY, "json", "1.0", "RSA2", "utf-8", false, certParams);

//实例化具体API对应的request类,类名称和接口名称对应,当前调用接口名称,如:alipay.open.public.template.message.industry.modify 
AlipayOpenPublicTemplateMessageIndustryModifyRequest request = new AlipayOpenPublicTemplateMessageIndustryModifyRequest();

//SDK已经封装掉了公共参数,这里只需要传入业务参数
//此次只是参数展示,未进行字符串转义,实际情况下请转义
request.BizContent="{" +
"    \"primary_industry_name\":\"IT科技/IT软件与服务\"," +
"    \"primary_industry_code\":\"10001/20102\"," +
"    \"secondary_industry_code\":\"10001/20102\"," +
"    \"secondary_industry_name\":\"IT科技/IT软件与服务\"" +
"  }";

AlipayOpenPublicTemplateMessageIndustryModifyResponse response = client.CertificateExecute(request); 

//调用成功,则处理业务逻辑
if(response.isSuccess()){
    //.....
}

更多示例请访问: 支付宝开放平台-文档中心-服务端SDK主页

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. 
.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 (21)

Showing the top 5 NuGet packages that depend on AlipaySDKNet.Standard:

Package Downloads
PiratesCore

湖南医标通信息科技有限公司

PlatForm.LibFrame

Package Description

Pirates.Core

路飞基础类

JXIPS.Infrastructure

基础设施层

NF.Common.Alipay

JQIT支付宝相关接口,net5.0使用3以下的版本

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on AlipaySDKNet.Standard:

Repository Stars
dashiell-zhang/NetEngine
基于 .Net 框架搭建的一个基础项目结构
geekoutnet/CollectiveOAuth
.Net平台(C#) 史上最全的整合第三方登录的开源库 => 环境支持 .NET Framework 4.5 ~ 4.6.2 和 .NetCore 3.1。目前已包含Github、Gitee、钉钉、百度、支付宝、微信、企业微信、腾讯云开发者平台(Coding)、OSChina、微博、QQ、Google、Facebook、抖音、领英、小米、微软、今日头条、Teambition、StackOverflow、Pinterest、人人、华为、酷家乐、Gitlab、美团、饿了么、等第三方平台的授权登录。以下平台正在接入中: 推特、淘宝
junkai-li/NetCoreKevin
基于NET6搭建跨平台DDD-微服务-WebApi架构支持:IDS4单点登录、多缓存、自动任务、分布式、多租户、日志、授权和鉴权、CAP集成事件、SignalR、领域事件、单元测试
AIDotNet/Thor
Thor(雷神托尔) 是一款强大的人工智能模型管理工具,其主要目的是为了实现多种AI模型的统一管理和使用。通过Thor(雷神托尔),用户可以轻松地管理和使用众多AI模型,而且Thor(雷神托尔)兼容OpenAI的接口格式,使得使用更加方便。
Version Downloads Last updated
4.9.320 446 11/11/2024
4.9.313 738 11/4/2024
4.9.296 1,560 10/16/2024
4.9.286 1,025 10/8/2024
4.9.280 1,145 9/19/2024
4.9.258 1,431 9/3/2024
4.9.249 1,367 8/23/2024
4.9.244 2,276 8/19/2024
4.9.231 1,323 8/7/2024
4.9.198 2,522 7/15/2024
4.9.182 1,445 7/1/2024
4.9.171 9,705 6/17/2024
4.9.156 1,443 6/3/2024
4.9.131 4,881 5/11/2024
4.9.119 2,745 4/28/2024
4.9.78 6,879 3/27/2024
4.9.61 1,710 3/13/2024
4.9.33 11,913 1/25/2024
4.9.20 7,173 1/4/2024
4.8.76 13,126 11/14/2023
4.8.70 993 11/7/2023
4.8.50 4,379 10/19/2023
4.8.39 1,278 10/13/2023
4.8.30 2,585 9/27/2023
4.8.12 5,911 9/6/2023
4.8.2 5,976 8/23/2023
4.7.350 4,790 8/15/2023
4.7.328 17,356 7/27/2023
4.7.320 1,147 7/24/2023
4.7.295 5,017 6/28/2023
4.7.279 1,727 6/19/2023
4.7.261 4,635 6/7/2023
4.7.256 1,835 5/30/2023
4.7.238 3,743 5/16/2023
4.7.214 9,657 4/16/2023
4.7.208 3,103 4/7/2023
4.7.200 11,697 4/1/2023
4.7.196 2,639 3/27/2023
4.7.186 6,384 3/14/2023
4.7.166 11,064 2/22/2023
4.7.144 14,306 1/15/2023
4.7.113 5,989 12/21/2022
4.6.442 33,137 9/20/2022
4.6.437 3,791 9/9/2022
4.6.424 7,180 8/29/2022
4.6.398 8,361 8/8/2022
4.6.367 13,376 7/18/2022
4.6.341 5,899 7/1/2022
4.6.308 24,968 6/8/2022
4.6.285 8,127 5/25/2022
4.6.240 15,091 4/19/2022
4.6.239 3,413 4/19/2022
4.6.192 12,913 3/2/2022
4.6.174 16,373 2/15/2022
4.6.167 4,496 1/26/2022
4.6.135 12,382 12/27/2021
4.6.109 5,651 12/3/2021
4.6.99 4,524 12/3/2021
4.6.60 16,699 10/11/2021
4.6.0 25,488 8/3/2021
4.5.18 6,971 7/5/2021
4.5.1 4,469 6/21/2021
4.4.63 5,021 6/9/2021
4.4.37 17,425 4/22/2021
4.3.175 43,717 2/19/2021
4.3.174 4,268 2/19/2021
4.3.111 26,778 12/21/2020
4.3.99 9,102 12/2/2020
4.3.0 27,737 8/24/2020
4.2.109 31,322 4/8/2020
4.2.103 1,519 4/1/2020
4.2.73 11,255 3/6/2020
4.2.30 3,605 2/16/2020
4.2.13 18,900 1/7/2020
4.2.12 1,112 1/7/2020
4.2.11 2,935 1/7/2020
4.1.38 1,918 12/13/2019
4.1.2 3,332 11/15/2019