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); }
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")); }
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")); }
public static void Escrow(BraintreeService service, string transactionId) { NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/transactions/" + transactionId + "/escrow")); Assert.IsTrue(response.IsSuccess()); }
public static void Settle(BraintreeService service, String transactionId) { NodeWrapper response = new NodeWrapper(service.Put("/transactions/" + transactionId + "/settle")); Assert.IsTrue(response.IsSuccess()); }
public static void SettlementDecline(BraintreeService service, string transactionId) { NodeWrapper response = new NodeWrapper(service.Put(service.MerchantPath() + "/transactions/" + transactionId + "/settlement_decline")); Assert.IsTrue(response.IsSuccess()); }
public static void SettlementPending(BraintreeService service, String transactionId) { NodeWrapper response = new NodeWrapper(service.Put("/transactions/" + transactionId + "/settlement_pending")); Assert.IsTrue(response.IsSuccess()); }
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()); }
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"); }