至少要求 .NET 3.5 以上,建议 .NET 4.0 以上。
- namespace 由 pingpp 改为 Pingpp
- 所有方法名更改,首字母大写
// 设置 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);
Charge ch = Charge.Reverse(String chargeId);
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);
Transfer.Cancel(string Id);
Identification.Identify(new Dictionary<string, object> iParams);
Customs.Create(Dictionary<string, object> cuParams);
Customs.Retrieve(string Id);
BatchRefund.Create(Dictionary<string, object> btParams);
BatchRefund.List(Dictionary<string, object> listParams)
BatchRefund.Retrieve(string Id)
BatchTransfer.Create(Dictionary<string, object> btParams);
BatchTransfer.Retrieve(string batchTransterId)
BatchTransfer.List(Dictionary<string, object> btParams)
BatchTransfer.Cancel(String btId)
Event evt = Event.Retrieve(String id);
详细信息请参考 API 文档