BraintreeTestTransaction

Transaction amounts used for testing purposes.

Defined (1)

The class is defined in the following location(s).

/classes/lib/Braintree/Braintree/Test/Transaction.php  
  1. final class Transaction 
  2. /** 
  3. * settle a transaction by id in sandbox 
  4. * @param string $id transaction id 
  5. * @param Configuration $config gateway config 
  6. * @return Transaction 
  7. */ 
  8. public static function settle($transactionId) 
  9. return Configuration::gateway()->testing()->settle($transactionId); 
  10.  
  11. /** 
  12. * settlement confirm a transaction by id in sandbox 
  13. * @param string $id transaction id 
  14. * @param Configuration $config gateway config 
  15. * @return Transaction 
  16. */ 
  17. public static function settlementConfirm($transactionId) 
  18. return Configuration::gateway()->testing()->settlementConfirm($transactionId); 
  19.  
  20. /** 
  21. * settlement decline a transaction by id in sandbox 
  22. * @param string $id transaction id 
  23. * @param Configuration $config gateway config 
  24. * @return Transaction 
  25. */ 
  26. public static function settlementDecline($transactionId) 
  27. return Configuration::gateway()->testing()->settlementDecline($transactionId); 
  28.  
  29. /** 
  30. * settlement pending a transaction by id in sandbox 
  31. * @param string $id transaction id 
  32. * @param Configuration $config gateway config 
  33. * @return Transaction 
  34. */ 
  35. public static function settlementPending($transactionId) 
  36. return Configuration::gateway()->testing()->settlementPending($transactionId);