예제 #1
0
 private AlipayTradeQueryResponse sendTradeQuery(string outTradeNo)
 {
     try
     {
         AlipayTradeQueryContentBuilder build = new AlipayTradeQueryContentBuilder();
         build.out_trade_no = outTradeNo;
         AlipayTradeQueryRequest payRequest = new AlipayTradeQueryRequest();
         payRequest.BizContent = build.BuildJson();
         AlipayTradeQueryResponse payResponse = client.Execute(payRequest);
         return(payResponse);
     }
     catch
     {
         return(null);
     }
 }
예제 #2
0
        public AlipayF2FQueryResult tradeQuery(string outTradeNo)
        {
            AlipayF2FQueryResult result = new AlipayF2FQueryResult();

            try
            {
                AlipayTradeQueryContentBuilder build = new AlipayTradeQueryContentBuilder();
                build.out_trade_no = outTradeNo;
                AlipayTradeQueryRequest payRequest = new AlipayTradeQueryRequest();
                payRequest.BizContent = build.BuildJson();
                result.response       = client.Execute(payRequest);
                return(result);
            }
            catch
            {
                result.response = null;
                return(result);
            }
        }