Inheritance: Braintree.Request
Beispiel #1
0
        public virtual Task <Result <Transaction> > RefundAsync(string id, decimal amount)
        {
            var request = new TransactionRefundRequest
            {
                Amount = amount
            };

            return(RefundAsync(id, request));
        }
Beispiel #2
0
        public virtual async Task <Result <Transaction> > RefundAsync(string id, TransactionRefundRequest refundRequest)
        {
            XmlNode response = await service.PostAsync(service.MerchantPath() + "/transactions/" + id + "/refund", refundRequest).ConfigureAwait(false);

            return(new ResultImpl <Transaction>(new NodeWrapper(response), gateway));
        }
Beispiel #3
0
        public virtual Result <Transaction> Refund(string id, TransactionRefundRequest refundRequest)
        {
            XmlNode response = service.Post(service.MerchantPath() + "/transactions/" + id + "/refund", refundRequest);

            return(new ResultImpl <Transaction>(new NodeWrapper(response), gateway));
        }
        public virtual Result<Transaction> Refund(string id, decimal amount)
        {
            var request = new TransactionRefundRequest
            {
                Amount = amount
            };

            return Refund(id, request);
        }
 public virtual Result<Transaction> Refund(string id, TransactionRefundRequest refundRequest)
 {
     XmlNode response = service.Post(service.MerchantPath() + "/transactions/" + id + "/refund", refundRequest);
     return new ResultImpl<Transaction>(new NodeWrapper(response), gateway);
 }