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

            return(RefundAsync(id, request));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);
 }