Beispiel #1
0
        public IRefundTransactionResponse Refund(string originalTransactionReference, decimal amount)
        {
            var requestDocument = _refundRequestBuilder.Build(originalTransactionReference, amount);
            var response        = _httpClient.Post(_configuration.Host, requestDocument.ToString(SaveOptions.DisableFormatting));

            return(_refundResponseParser.Parse(response));
        }
Beispiel #2
0
        private IRefundTransactionResponse RefundSingleOrRecurring(string originalTransactionReference, decimal amount, string captureMethod)
        {
            var requestDocument = _refundRequestBuilder.Build(originalTransactionReference, amount, captureMethod);
            var response        = _httpClient.Post(_configuration.Host, requestDocument.ToString(SaveOptions.DisableFormatting));

            return(_refundResponseParser.Parse(response));
        }