You are here

public static function Braintree_CreditCard::createNoValidate in Commerce Braintree 7

attempts the create operation assuming all data will validate returns a Braintree_CreditCard object instead of a Result

@access public

Parameters

array $attribs:

Return value

object

Throws

Braintree_Exception_ValidationError

9 calls to Braintree_CreditCard::createNoValidate()
Braintree_CreditCardTest::testCreateNoValidate_returnsCreditCardIfValid in braintree_php/tests/integration/CreditCardTest.php
Braintree_CreditCardTest::testCreateNoValidate_throwsIfValidationsFail in braintree_php/tests/integration/CreditCardTest.php
Braintree_CreditCardTest::testDelete_deletesThePaymentMethod in braintree_php/tests/integration/CreditCardTest.php
Braintree_CreditCardTest::testUpdateFromTransparentRedirect in braintree_php/tests/integration/CreditCardTest.php
Braintree_CreditCardTest::testUpdateFromTransparentRedirect_andUpdateExistingBillingAddress in braintree_php/tests/integration/CreditCardTest.php

... See full list

File

braintree_php/lib/Braintree/CreditCard.php, line 96

Class

Braintree_CreditCard
Creates and manages Braintree CreditCards

Code

public static function createNoValidate($attribs) {
  $result = self::create($attribs);
  return self::returnObjectOrThrowException(__CLASS__, $result);
}