Example #1
0
            private static async Task <ApiResult <ApiRefundResponse> > BecauseAsync()
            {
                ApiResult = await CardPaymentService.CreatePaymentAsync(CardPaymentRequest);

                CaptureResult = await CardPaymentService.CapturePaymentAsync(ApiResult.Value.Payment.ID.Value, CapturedAmount);

                return(await RefundService.CreateRefundAsync(ApiResult.Value.Payment.ID.Value, RefundRequest));
            }