此版本基于官方SDK克隆而来,只是简单的把WebRequest更改成了HttpClient. 参照官方Demo做了个支付请求的Demo并测试.
其他功能的并未测试.
欢迎使用issues提bug,或者提交合并请求.
至少要求 .net core 1.1
Install-Package PingPlusPlus.AspNetCore// 设置 API-KEY
Pingpp.Pingpp.SetApiKey("sk_test_ibbTe5jLGCi5rzfH4OqPW9KC");密钥需要你自己生成,公钥请填写到 Ping++ Dashboard
Pingpp.Pingpp.SetPrivateKeyPath(@"你生成的私钥文件的路径");Charge ch = Charge.Create(Dictionary<String, Object> param);Charge ch = Charge.Retrieve(String id);ChargeList chs = Charge.List(Dictionary<String, Object> listParam);Refund re = Refund.Create(String chId, Dictionary<String, Object> param);Refund re = Refund.Retrieve(String chId, String reId);RefundList res = Refund.List(String chId, Dictionary<String, Object> listParam);RedEnvelope red = RedEnvelope.Create(Dictionary<String, Object> param);RedEnvelope red = RedEnvelope.Retrieve(String id);RedEnvelopeList reds = RedEnvelope.List(Dictionary<String, Object> listParam);Transfer tr = Transfer.Create(Dictionary<String, Object> param);Transfer tr = Transfer.Retrieve(String id);TransferList trs = Transfer.List(Dictionary<String, Object> listParam);Event evt = Event.Retrieve(String id);EventList evts = Event.List(Dictionary<String, Object> listParam);详细信息请参考 API 文档