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 (19)

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

Package Downloads
PiratesCore

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

PlatForm.LibFrame

Package Description

Pirates.Core

路飞基础类

JXIPS.Infrastructure

基础设施层

LC.Tool

LC.Tool

GitHub repositories (3)

Showing the top 3 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、领域事件、单元测试
Version Downloads Last updated
4.9.78 655 3/27/2024
4.9.61 545 3/13/2024
4.9.33 3,712 1/25/2024
4.9.20 5,637 1/4/2024
4.8.76 11,108 11/14/2023
4.8.70 849 11/7/2023
4.8.50 3,499 10/19/2023
4.8.39 959 10/13/2023
4.8.30 1,806 9/27/2023
4.8.12 4,622 9/6/2023
4.8.2 3,409 8/23/2023
4.7.350 3,493 8/15/2023
4.7.328 14,382 7/27/2023
4.7.320 1,012 7/24/2023
4.7.295 3,664 6/28/2023
4.7.279 1,625 6/19/2023
4.7.261 3,722 6/7/2023
4.7.256 1,351 5/30/2023
4.7.238 3,054 5/16/2023
4.7.214 8,825 4/16/2023
4.7.208 2,742 4/7/2023
4.7.200 11,557 4/1/2023
4.7.196 2,520 3/27/2023
4.7.186 4,722 3/14/2023
4.7.166 9,862 2/22/2023
4.7.144 11,278 1/15/2023
4.7.113 5,358 12/21/2022
4.6.442 27,670 9/20/2022
4.6.437 3,771 9/9/2022
4.6.424 7,084 8/29/2022
4.6.398 8,084 8/8/2022
4.6.367 12,957 7/18/2022
4.6.341 5,549 7/1/2022
4.6.308 21,734 6/8/2022
4.6.285 7,251 5/25/2022
4.6.240 13,545 4/19/2022
4.6.239 3,380 4/19/2022
4.6.192 12,424 3/2/2022
4.6.174 15,976 2/15/2022
4.6.167 4,436 1/26/2022
4.6.135 11,782 12/27/2021
4.6.109 5,518 12/3/2021
4.6.99 4,490 12/3/2021
4.6.60 16,125 10/11/2021
4.6.0 23,538 8/3/2021
4.5.18 6,674 7/5/2021
4.5.1 4,408 6/21/2021
4.4.63 4,970 6/9/2021
4.4.37 15,948 4/22/2021
4.3.175 42,754 2/19/2021
4.3.174 4,241 2/19/2021
4.3.111 25,705 12/21/2020
4.3.99 9,023 12/2/2020
4.3.0 26,854 8/24/2020
4.2.109 30,464 4/8/2020
4.2.103 1,488 4/1/2020
4.2.73 11,059 3/6/2020
4.2.30 3,528 2/16/2020
4.2.13 18,529 1/7/2020
4.2.12 1,089 1/7/2020
4.2.11 1,966 1/7/2020
4.1.38 1,870 12/13/2019
4.1.2 3,249 11/15/2019