pingpp 1.6.0

dotnet add package pingpp --version 1.6.0                
NuGet\Install-Package pingpp -Version 1.6.0                
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="pingpp" Version="1.6.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add pingpp --version 1.6.0                
#r "nuget: pingpp, 1.6.0"                
#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 pingpp as a Cake Addin
#addin nuget:?package=pingpp&version=1.6.0

// Install pingpp as a Cake Tool
#tool nuget:?package=pingpp&version=1.6.0                

Ping++ CSharp SDK

简介

版本要求

至少要求 .NET 4.6 及以上。

注意

  • namespace 由 pingpp 改为 Pingpp
  • 所有方法名更改,首字母大写
  • 如果您的项目中 .NET Framework版本低于 4.6,请切换至 1.4.5 版本

安装

接入方法

初始化

// 设置 API-KEY
Pingpp.Pingpp.SetApiKey("sk_test_ibbTe5jLGCi5rzfH4OqPW9KC");

设置请求签名密钥

密钥需要你自己生成,公钥请填写到 Ping++ Dashboard

Pingpp.Pingpp.SetPrivateKeyPath(@"你生成的私钥文件的路径");

设置重试

设置重试次数,0 表示不重试,默认为 1

Pingpp.Pingpp.SetMaxNetworkRetries(1);

当服务端返回 502 时,是否根据返回内容(阿里高防返回)来判断是否重试。true 表示只要是 502,全部重试,false 关闭重试功能。默认为 true

Pingpp.Pingpp.SetBadGateWayMatch(true);

支付

发起支付请求
Charge ch = Charge.Create(Dictionary<String, Object> param);
查询指定 charge 对象
Charge ch = Charge.Retrieve(String id);
查询 charge 列表
ChargeList chs = Charge.List(Dictionary<String, Object> listParam);
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on pingpp:

Package Downloads
MaiSheng.Crm.Operation

MS

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.6.0 880 7/10/2019
1.5.0 826 11/2/2018
1.4.5 1,029 5/24/2018
1.4.4 1,053 5/15/2018
1.4.3 1,077 1/10/2018
1.4.2 988 12/27/2017
1.4.1 924 12/5/2017
1.1.0 1,946 3/31/2016
1.0.0 3,130 8/7/2015

新增:SplitProfit、SplitReceiver、ProfitTransaction、SubBank 相关接口