Beispiel #1
0
        //查询订单
        private bool QueryOrder(string transaction_id)
        {
            var req = new ParamsData();

            req.SetValue("transaction_id", transaction_id);

            var res = PayApi.OrderQuery(req);

            if (res.GetValue("return_code").ToString() == "SUCCESS" &&
                res.GetValue("result_code").ToString() == "SUCCESS")
            {
                _paySuccess = true;

                OrderData = res;

                return(true);
            }
            else
            {
                return(false);
            }
        }