• 大小: 3.02MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-04
  • 语言: 其他
  • 标签:

资源简介

支付宝(Alipay)服务端SDK,采用.NET Standard 2.0,支持.NET Core 2.0,与官方SDK接口完全相同。完全可以按照官方文档进行开发。除了支持支付以外,官方SDK支持的功能本SDK全部支持,且用法几乎一样,代码都可参考官方文档代码。

资源截图

代码片段和文件信息

using Alipay.AopSdk.F2FPay.Business;
using Alipay.AopSdk.F2FPay.Domain;
using Microsoft.Extensions.Options;

namespace Alipay.AopSdk.AspnetCore
{
    public class AlipayF2FService
    {
        public AlipayOptions Options { get; set; }

        private readonly IAlipayTradeService _alipayClient;
        public AlipayF2FService(IOptions alipayOptions)
        {
            Options = alipayOptions.Value;
            _alipayClient = F2FBiz.CreateClientInstance(Options.Gatewayurl Options.AppId Options.PrivateKey “1.0“
                Options.SignType Options.AlipayPublicKey Options.CharSet);
        }

        public AlipayF2FPayResult TradePay(AlipayTradePayContentBuilder builder)
        {
            return _alipayClient.tradePay(builder);
        }

        public AlipayF2FQueryResult TradeQuery(string outTradeNo)
        {
            return _alipayClient.tradeQuery(outTradeNo);
        }

        public AlipayF2FRefundResult TradeRefund(AlipayTradeRefundContentBuilder builder)
        {
            return _alipayClient.tradeRefund(builder);
        }

        public AlipayF2FPrecreateResult TradePrecreate(AlipayTradePrecreateContentBuilder builder)
        {
            return _alipayClient.tradePrecreate(builder);
        }

        public AlipayF2FPrecreateResult TradePrecreate(AlipayTradePrecreateContentBuilder builder string notify_url)
        {
            return _alipayClient.tradePrecreate(builder notify_url);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\
     文件        2518  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\.gitattributes
     文件        4358  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\.gitignore
     目录           0  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.AspnetCore\
     文件        1635  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.AspnetCore\Alipay.AopSdk.AspnetCore.csproj
     文件        1488  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.AspnetCore\AlipayF2FService.cs
     文件         504  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.AspnetCore\AlipayMiddleware.cs
     文件        2813  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.AspnetCore\AlipayOptions.cs
     文件        1809  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.AspnetCore\AlipayService.cs
     文件        1248  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.AspnetCore\AlipayServiceCollectionExtensions.cs
     目录           0  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core.UnitTest\
     文件         860  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core.UnitTest\Alipay.AopSdk.Core.UnitTest.csproj
     文件        5319  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core.UnitTest\PublicTest.cs
     文件        1872  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core.UnitTest\TestImage.cs
     文件         886  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core.UnitTest\aop-sandbox-RSA-private-c#.pem
     文件         271  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core.UnitTest\public-key.pem
     文件        2424  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core.sln
     目录           0  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\
     文件        1457  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\Alipay.AopSdk.Core.csproj
     文件         283  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\AlipayConstants.cs
     文件        6265  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\AlipayMobilePublicMultiMediaClient.cs
     文件        2051  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\AlipayMobilePublicMultiMediaDownloadRequest.cs
     文件         197  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\AlipayMobilePublicMultiMediaDownloadResponse.cs
     文件        1630  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\AopDictionary.cs
     文件         733  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\AopException.cs
     文件         161  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\Aopobject.cs
     文件        1233  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\AopResponse.cs
     目录           0  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\Business\
     文件        4493  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\Business\AlipayCore.cs
     文件         975  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\Business\AlipayF2FMonitorResult.cs
     文件         958  2018-09-14 03:58  dotnetcore-Alipay.AopSdk.Core-00451d4\Alipay.AopSdk.Core\Business\AlipayF2FPayResult.cs
............此处省略2724个文件信息

评论

共有 条评论