예제 #1
0
 //查询订单
 private bool QueryOrder(string transaction_id,JsApiPay jsApiPay)
 {
     WxPayData req = new WxPayData();
     req.SetValue("transaction_id", transaction_id);
     WxPayData res = jsApiPay.OrderQuery(req);
     if (res.GetValue("return_code").ToString() == "SUCCESS" &&
         res.GetValue("result_code").ToString() == "SUCCESS")
     {
         return true;
     }
     else
     {
         return false;
     }
 }