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

            return(RefundAsync(id, request));
        }
Exemple #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));
        }
Exemple #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);
 }