static void ZeusPay() { var result = PayHelper.ZeusPay("http://192.168.1.240/api/public/payrequest", new Models.PayRequest { identifier = "173960116574380032", callback = "http://extsite.com/pay/otc/callbac", cur = "BTC", amt = 100.32f, biz_identifier = "", transaction = 209235432800526336L, token = "123421312", expiry = "", desc = "后台支付请求示例" }); if (result == null) { Console.WriteLine("接口异常!"); } else if (result.error != "OK") { Console.WriteLine(result.error); } else { Console.WriteLine(JsonConvert.SerializeObject(result)); } }
static void ZeusPayLogin() { var result = PayHelper.ZeusPayLogin("http://192.168.1.240/api/public/authconnect", "173960116574380032"); if (result == null) { Console.WriteLine("接口异常!"); } else if (result.error != "OK") { Console.WriteLine(result.error); } else { Console.WriteLine(JsonConvert.SerializeObject(result)); } }