public static function Braintree_CreditCard::creditNoValidate in Commerce Braintree 7
create a credit on this card, assuming validations will pass
returns a Braintree_Transaction object on success
@access public
Parameters
array $attribs:
Return value
object Braintree_Transaction
Throws
Braintree_Exception_ValidationError
2 calls to Braintree_CreditCard::creditNoValidate()
- Braintree_CreditCardTest::testCreditNoValidate_createsACreditUsingGivenToken in braintree_php/
tests/ integration/ CreditCardTest.php - Braintree_CreditCardTest::testCreditNoValidate_throwsIfInvalid in braintree_php/
tests/ integration/ CreditCardTest.php
File
- braintree_php/
lib/ Braintree/ CreditCard.php, line 237
Class
- Braintree_CreditCard
- Creates and manages Braintree CreditCards
Code
public static function creditNoValidate($token, $transactionAttribs) {
$result = self::credit($token, $transactionAttribs);
return self::returnObjectOrThrowException('Transaction', $result);
}