Ejemplo n.º 1
0
        public async Task <IActionResult> Refund(string no_refund, string dt_refund, string money_refund, string no_order, string dt_order, string oid_paybill, string notify_url)
        {
            var request = new LianLianPayRefundRequest()
            {
                NoRefund    = no_refund,
                DtRefund    = dt_refund,
                MoneyRefund = money_refund,
                NoOrder     = no_order,
                DtOrder     = dt_order,
                OidPaybill  = oid_paybill,
                NotifyUrl   = notify_url,
            };
            var response = await _client.ExecuteAsync(request);

            return(Content(response.Body));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Refund(LianLianPayRefundViewModel viewModel)
        {
            var request = new LianLianPayRefundRequest
            {
                NoRefund    = viewModel.NoRefund,
                DtRefund    = viewModel.DtRefund,
                MoneyRefund = viewModel.MoneyRefund,
                NoOrder     = viewModel.NoOrder,
                DtOrder     = viewModel.DtOrder,
                OidPaybill  = viewModel.OidPayBill,
                NotifyUrl   = viewModel.NotifyUrl
            };
            var response = await _client.ExecuteAsync(request, _optionsAccessor.Value);

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