public static function Braintree_Transaction::factory in Commerce Braintree 7
factory method: returns an instance of Braintree_Transaction to the requesting method, with populated properties
@ignore
Return value
object instance of Braintree_Transaction
7 calls to Braintree_Transaction::factory()
- Braintree_BraintreeTest::testIsset in braintree_php/
tests/ unit/ BraintreeTest.php - Braintree_Result_Error::__construct in braintree_php/
lib/ Braintree/ Result/ Error.php - overrides default constructor @ignore
- Braintree_Subscription::_initialize in braintree_php/
lib/ Braintree/ Subscription.php - @ignore
- Braintree_Subscription::_verifyGatewayResponse in braintree_php/
lib/ Braintree/ Subscription.php - @ignore
- Braintree_Transaction::find in braintree_php/
lib/ Braintree/ Transaction.php - @access public
File
- braintree_php/
lib/ Braintree/ Transaction.php, line 656
Class
- Braintree_Transaction
- Creates and manages transactions
Code
public static function factory($attributes) {
$instance = new self();
$instance
->_initialize($attributes);
return $instance;
}