コード例 #1
0
ファイル: RefundGateway.cs プロジェクト: alastairgould/Moolah
        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));
        }
コード例 #2
0
ファイル: RefundGateway.cs プロジェクト: rubenanton90/Moolah
        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));
        }