예제 #1
0
        public async Task <IActionResult> RefundQuery(string no_refund, string dt_refund, string oid_refundno)
        {
            var request = new LianLianPayRefundQueryRequest()
            {
                NoRefund    = no_refund,
                DtRefund    = dt_refund,
                OidRefundNo = oid_refundno,
            };
            var response = await _client.ExecuteAsync(request);

            return(Content(response.Body));
        }
예제 #2
0
        public async Task <IActionResult> RefundQuery(LianLianPayRefundQueryViewModel viewModel)
        {
            var request = new LianLianPayRefundQueryRequest
            {
                NoRefund    = viewModel.NoRefund,
                DtRefund    = viewModel.DtRefund,
                OidRefundNo = viewModel.OidRefundNo
            };
            var response = await _client.ExecuteAsync(request, _optionsAccessor.Value);

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