Exemplo n.º 1
0
        public async Task <IActionResult> RefundQuery(string refund_id, string out_refund_no, string transaction_id, string out_trade_no)
        {
            var request = new QPayRefundQueryRequest()
            {
                RefundId      = refund_id,
                OutRefundNo   = out_refund_no,
                TransactionId = transaction_id,
                OutTradeNo    = out_trade_no,
            };
            var response = await _client.ExecuteAsync(request);

            return(Ok(response.Body));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> RefundQuery(QPayRefundQueryViewModel viewModel)
        {
            var request = new QPayRefundQueryRequest
            {
                RefundId      = viewModel.RefundId,
                OutRefundNo   = viewModel.OutRefundNo,
                TransactionId = viewModel.TransactionId,
                OutTradeNo    = viewModel.OutTradeNo
            };
            var response = await _client.ExecuteAsync(request);

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