예제 #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);
        }
예제 #2
0
        public static string Create3DSVerification(BraintreeService service, string merchantAccountId, ThreeDSecureRequestForTests request)
        {
            string      url      = "/three_d_secure/create_verification/" + merchantAccountId;
            NodeWrapper response = new NodeWrapper(service.Post(service.MerchantPath() + url, request));

            Assert.IsTrue(response.IsSuccess());
            return(response.GetString("three-d-secure-token"));
        }
예제 #3
0
        public static string Generate3DSNonce(BraintreeService service, CreditCardRequest request)
        {
            string      url      = "/three_d_secure/create_nonce/" + MerchantAccountIDs.THREE_D_SECURE_MERCHANT_ACCOUNT_ID;
            NodeWrapper response = new NodeWrapper(service.Post(service.MerchantPath() + url, request));

            Assert.IsTrue(response.IsSuccess());
            return(response.GetString("nonce"));
        }
예제 #4
0
        public static void Escrow(BraintreeService service, string transactionId)
        {
            NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/transactions/" + transactionId + "/escrow"));

            Assert.IsTrue(response.IsSuccess());
        }
예제 #5
0
 public static void Settle(BraintreeService service, String transactionId)
 {
     NodeWrapper response = new NodeWrapper(service.Put("/transactions/" + transactionId + "/settle"));
     Assert.IsTrue(response.IsSuccess());
 }
예제 #6
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());
        }
예제 #7
0
        public static void SettlementPending(BraintreeService service, String transactionId)
        {
            NodeWrapper response = new NodeWrapper(service.Put("/transactions/" + transactionId + "/settlement_pending"));

            Assert.IsTrue(response.IsSuccess());
        }
예제 #8
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());
 }
예제 #9
0
 public static void Escrow(BraintreeService service, string transactionId)
 {
   NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/transactions/" + transactionId + "/escrow"));
   Assert.IsTrue(response.IsSuccess());
 }
예제 #10
0
 public static string Create3DSVerification(BraintreeService service, string merchantAccountId, ThreeDSecureRequestForTests request)
 {
   string url = "/three_d_secure/create_verification/" + merchantAccountId;
   NodeWrapper response = new NodeWrapper(service.Post(service.MerchantPath() + url, request));
   Assert.IsTrue(response.IsSuccess());
   return response.GetString("three-d-secure-token");
 }