Beispiel #1
0
        public async Task <IActionResult> TransQuery(AlipayTransQueryViewModel viewMode)
        {
            var model = new AlipayFundTransCommonQueryModel
            {
                OutBizNo = viewMode.OutBizNo,
                OrderId  = viewMode.OrderId
            };

            var req = new AlipayFundTransCommonQueryRequest();

            req.SetBizModel(model);
            var response = await _client.CertificateExecuteAsync(req, _optionsAccessor.Value);

            ViewData["response"] = response.Body;
            return(View());
        }
        public async Task <IActionResult> TransQuery(AlipayTransQueryViewModel viewMode)
        {
            var model = new AlipayFundTransOrderQueryModel()
            {
                OutBizNo = viewMode.OutBizNo,
                OrderId  = viewMode.OrderId,
            };

            var req = new AlipayFundTransOrderQueryRequest();

            req.SetBizModel(model);
            var response = await _client.ExecuteAsync(req);

            ViewData["response"] = response.Body;
            return(View());
        }