Beispiel #1
0
        public async Task OnPostAsync()
        {
            var res = await OrderSample.CapturesRefund(CaptureId, AmountCapture);

            Result      = JsonConvert.SerializeObject(res.Result <Refund>());
            OrderId     = "7UH61628XA245370J";
            AmountOrder = "10.00";
        }
        public async Task <string> CaptureRefund(string captureId, string refundAmount)
        {
            var response = await OrderSample.CapturesRefund(captureId, refundAmount);

            var res  = response.Result <Refund>();
            var json = JsonConvert.SerializeObject(res);

            return(json);
        }