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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
- Newtonsoft.Json (>= 9.0.1)
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.
新增:SplitProfit、SplitReceiver、ProfitTransaction、SubBank 相关接口