public static function Braintree_CreditCard::saleNoValidate in Commerce Braintree 7
create a new sale using this card, assuming validations will pass
returns a Braintree_Transaction object on success
@access public
Parameters
array $transactionAttribs:
string $token:
Return value
object Braintree_Transaction
Throws
Braintree_Exception_ValidationsFailed
See also
3 calls to Braintree_CreditCard::saleNoValidate()
- Braintree_CreditCardTest::testSaleNoValidate_createsASaleUsingGivenToken in braintree_php/
tests/ integration/ CreditCardTest.php - Braintree_CreditCardTest::testSaleNoValidate_createsASaleUsingGivenTokenAndCvv in braintree_php/
tests/ integration/ CreditCardTest.php - Braintree_CreditCardTest::testSaleNoValidate_throwsIfInvalid in braintree_php/
tests/ integration/ CreditCardTest.php
File
- braintree_php/
lib/ Braintree/ CreditCard.php, line 274
Class
- Braintree_CreditCard
- Creates and manages Braintree CreditCards
Code
public static function saleNoValidate($token, $transactionAttribs) {
$result = self::sale($token, $transactionAttribs);
return self::returnObjectOrThrowException('Transaction', $result);
}