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.313 32 11/4/2024
4.9.296 1,300 10/16/2024
4.9.286 931 10/8/2024
4.9.280 1,065 9/19/2024
4.9.258 1,352 9/3/2024
4.9.249 1,291 8/23/2024
4.9.244 1,998 8/19/2024
4.9.231 1,230 8/7/2024
4.9.198 2,386 7/15/2024
4.9.182 1,419 7/1/2024
4.9.171 8,998 6/17/2024
4.9.156 1,422 6/3/2024
4.9.131 4,783 5/11/2024
4.9.119 2,716 4/28/2024
4.9.78 6,601 3/27/2024
4.9.61 1,647 3/13/2024
4.9.33 11,869 1/25/2024
4.9.20 7,127 1/4/2024
4.8.76 13,043 11/14/2023
4.8.70 990 11/7/2023
4.8.50 4,347 10/19/2023
4.8.39 1,269 10/13/2023
4.8.30 2,579 9/27/2023
4.8.12 5,887 9/6/2023
4.8.2 5,853 8/23/2023
4.7.350 4,773 8/15/2023
4.7.328 17,217 7/27/2023
4.7.320 1,141 7/24/2023
4.7.295 4,932 6/28/2023
4.7.279 1,725 6/19/2023
4.7.261 4,576 6/7/2023
4.7.256 1,805 5/30/2023
4.7.238 3,737 5/16/2023
4.7.214 9,618 4/16/2023
4.7.208 3,096 4/7/2023
4.7.200 11,695 4/1/2023
4.7.196 2,633 3/27/2023
4.7.186 6,299 3/14/2023
4.7.166 11,037 2/22/2023
4.7.144 14,081 1/15/2023
4.7.113 5,855 12/21/2022
4.6.442 32,924 9/20/2022
4.6.437 3,790 9/9/2022
4.6.424 7,171 8/29/2022
4.6.398 8,354 8/8/2022
4.6.367 13,371 7/18/2022
4.6.341 5,891 7/1/2022
4.6.308 24,720 6/8/2022
4.6.285 8,078 5/25/2022
4.6.240 14,985 4/19/2022
4.6.239 3,412 4/19/2022
4.6.192 12,904 3/2/2022
4.6.174 16,371 2/15/2022
4.6.167 4,493 1/26/2022
4.6.135 12,330 12/27/2021
4.6.109 5,636 12/3/2021
4.6.99 4,523 12/3/2021
4.6.60 16,669 10/11/2021
4.6.0 25,382 8/3/2021
4.5.18 6,969 7/5/2021
4.5.1 4,467 6/21/2021
4.4.63 5,020 6/9/2021
4.4.37 17,371 4/22/2021
4.3.175 43,488 2/19/2021
4.3.174 4,267 2/19/2021
4.3.111 26,766 12/21/2020
4.3.99 9,100 12/2/2020
4.3.0 27,708 8/24/2020
4.2.109 31,289 4/8/2020
4.2.103 1,516 4/1/2020
4.2.73 11,243 3/6/2020
4.2.30 3,604 2/16/2020
4.2.13 18,860 1/7/2020
4.2.12 1,111 1/7/2020
4.2.11 2,887 1/7/2020
4.1.38 1,915 12/13/2019
4.1.2 3,327 11/15/2019