public static function Braintree_CreditCard::updateNoValidate in Commerce Braintree 7
update a creditcard record, assuming validations will pass
if calling this method in static context, $token is the 2nd attribute. $token is not sent in object context. returns a Braintree_CreditCard object on success
@access public
Parameters
array $attributes:
string $token:
Return value
object Braintree_CreditCard
Throws
Braintree_Exception_ValidationsFailed
2 calls to Braintree_CreditCard::updateNoValidate()
- Braintree_CreditCardTest::testUpdateNoValidate in braintree_php/
tests/ integration/ CreditCardTest.php - Braintree_CreditCardTest::testUpdateNoValidate_throwsIfInvalid in braintree_php/
tests/ integration/ CreditCardTest.php
File
- braintree_php/
lib/ Braintree/ CreditCard.php, line 311
Class
- Braintree_CreditCard
- Creates and manages Braintree CreditCards
Code
public static function updateNoValidate($token, $attributes) {
$result = self::update($token, $attributes);
return self::returnObjectOrThrowException(__CLASS__, $result);
}