public static function Braintree_Transaction::credit in Commerce Braintree 7
@access public
Parameters
array $attribs:
Return value
object
7 calls to Braintree_Transaction::credit()
- Braintree_CreditCard::credit in braintree_php/
lib/ Braintree/ CreditCard.php - create a credit on the card for the passed transaction
- Braintree_Customer::credit in braintree_php/
lib/ Braintree/ Customer.php - credit a customer for the passed transaction
- Braintree_Transaction::creditNoValidate in braintree_php/
lib/ Braintree/ Transaction.php - @access public
- Braintree_TransactionTest::testCloneWithValidations in braintree_php/
tests/ integration/ TransactionTest.php - Braintree_TransactionTest::testCredit in braintree_php/
tests/ integration/ TransactionTest.php
File
- braintree_php/
lib/ Braintree/ Transaction.php, line 319
Class
- Braintree_Transaction
- Creates and manages transactions
Code
public static function credit($attribs) {
return self::create(array_merge($attribs, array(
'type' => Braintree_Transaction::CREDIT,
)));
}