Ejemplo n.º 1
0
        public static NodeWrapper Settle(BraintreeService service, string transactionId)
        {
            NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/transactions/" + transactionId + "/settle"));

            Assert.IsTrue(response.IsSuccess());
            return(response);
        }
Ejemplo n.º 2
0
        public static void Escrow(BraintreeService service, string transactionId)
        {
            NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/transactions/" + transactionId + "/escrow"));

            Assert.IsTrue(response.IsSuccess());
        }
Ejemplo n.º 3
0
 public static void Settle(BraintreeService service, String transactionId)
 {
     NodeWrapper response = new NodeWrapper(service.Put("/transactions/" + transactionId + "/settle"));
     Assert.IsTrue(response.IsSuccess());
 }
Ejemplo n.º 4
0
        public static void SettlementDecline(BraintreeService service, string transactionId)
        {
            NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/transactions/" + transactionId + "/settlement_decline"));

            Assert.IsTrue(response.IsSuccess());
        }
Ejemplo n.º 5
0
        public static void SettlementPending(BraintreeService service, String transactionId)
        {
            NodeWrapper response = new NodeWrapper(service.Put("/transactions/" + transactionId + "/settlement_pending"));

            Assert.IsTrue(response.IsSuccess());
        }
Ejemplo n.º 6
0
 private void MakePastDue(Subscription subscription, int numberOfDays)
 {
     BraintreeService service = new BraintreeService(gateway.Configuration);
     NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/subscriptions/" + subscription.Id + "/make_past_due?days_past_due=" + numberOfDays));
     Assert.IsTrue(response.IsSuccess());
 }
Ejemplo n.º 7
0
 public static void Escrow(BraintreeService service, string transactionId)
 {
   NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/transactions/" + transactionId + "/escrow"));
   Assert.IsTrue(response.IsSuccess());
 }