3 Star 2 Fork 0

xiaolu6t6t / Alipay.AopSdk.Core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Alipay.AopSdk.Core

组件名 说明 版本号
Alipay.AopSdk.Core 服务端SDK,封装了支付宝开放平台的所有API Latest version
Alipay.AopSdk.F2FPay 当面付SDK,提供条码支付、扫码支付能力 Latest version
Alipay.AopSdk.AspnetCore 服务端SDK的ASP.NET Core组件,为了能更好配合ASP.NET Core 使用 Latest version
Alipay.AopSdk.F2FPay.AspnetCore 当面付SDK的ASP.NET Core组件,为了能更好配合ASP.NET Core 使用 Latest version

一直维护中,希望大家多多支持,多多建议

支付宝(Alipay)服务端SDK AopSdk,修改自官方最新版本:113。采用.NET Standard 2.0,支持.NET Core 2.0,与官方SDK接口完全相同。完全可以按照官方文档进行开发。不仅仅支持支付,官方SDK支持的功能本SDK全部支持,用法几乎一样。由于精力有限,所以只做了几个Demo,但是其他功能可以参照官方的Demo来使用。可以使用官方文档中的示例代码。如有问题请联系QQ501232752

ASP.NET Core

Alipay.AopSdk.AspnetCore

public void ConfigureServices(IServiceCollection services)
{
    services.AddAlipay(options =>
	        {
		        options.AlipayPublicKey = "支付宝公钥";
		        options.AppId = "应用ID";
		        options.CharSet = "密钥编码";
		        options.Gatewayurl = "支付网关";
		        options.PrivateKey = "商家私钥";
		        options.SignType = "签名方式 RSA/RSA2";
		        options.Uid = "商户ID";
	        });
}

使用:

private readonly IAlipayService  _alipayService;

public xxxController(IAlipayService alipayService)
{
	_alipayService = alipayService;

}

_alipayService.Execute();

Alipay.AopSdk.F2FPay.AspnetCore

public void ConfigureServices(IServiceCollection services)
{
    services.AddAlipay(options =>
	        {
		        options.AlipayPublicKey = "支付宝公钥";
		        options.AppId = "应用ID";
		        options.CharSet = "密钥编码";
		        options.Gatewayurl = "支付网关";
		        options.PrivateKey = "商家私钥";
		        options.SignType = "签名方式 RSA/RSA2";
		        options.Uid = "商户ID";
	        }).AddAlipayF2F();
}

使用:

private readonly IAlipayF2FService _alipayF2FService;

public xxxController(IAlipayF2FService alipayF2FService)
{
	_alipayF2FService = alipayF2FService;

}

_alipayF2FService.Execute();

具体用法可以看Demo

更新日志:

  • 2017-11-3 添加对ASP.NET Core的支持

  • 2017-10-30 修复在Linux上的BUG

官方文档:

Demo

Doc

MIT License Copyright (c) 2017 stulzq Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

支付宝(Alipay)服务端SDK AopSdk,修改自官方最新版本:113。采用.NET Standard 2.0,支持.NET Core 2.0,与官方SDK接口完全相同。完全可以按照官方文档进行开发。不仅仅支持支付,官方SDK支持的功能本SDK全部支持用法几乎一样。 展开 收起
C#
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/LucasDot/Alipay.AopSdk.Core.git
git@gitee.com:LucasDot/Alipay.AopSdk.Core.git
LucasDot
Alipay.AopSdk.Core
Alipay.AopSdk.Core
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891