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)); }
private static async Task <ApiResult <ApiCardPaymentResponse> > BecauseAsync() { var initialPaymentResponse = await CardPaymentService.CreatePaymentAsync(CardPaymentInitialRequest); CardPaymentRequest.Payment.CreditCardToken.Value = initialPaymentResponse.Value.Payment.CreditCardToken.Value; return(await CardPaymentService.CreatePaymentAsync(CardPaymentRequest)); }
private static async Task <ApiResult <ApiCardPaymentResponse> > BecauseAsync() { ApiResult = await CardPaymentService.CreatePaymentAsync(CardPaymentRequest); return(await CardPaymentService.CancelPaymentAsync(ApiResult.Value.Payment.ID.Value)); }