public static function Braintree_Customer::saleNoValidate in Commerce Braintree 7
create a new sale for a customer, assuming validations will pass
returns a Braintree_Transaction object on success @access public
Parameters
string $customerId:
array $transactionAttribs:
Return value
object Braintree_Transaction
Throws
Braintree_Exception_ValidationsFailed
See also
2 calls to Braintree_Customer::saleNoValidate()
- Braintree_CustomerTest::testSaleNoValidate_createsASaleUsingGivenToken in braintree_php/
tests/ integration/ CustomerTest.php - Braintree_CustomerTest::testSaleNoValidate_throwsIfInvalid in braintree_php/
tests/ integration/ CustomerTest.php
File
- braintree_php/
lib/ Braintree/ Customer.php, line 280
Class
- Braintree_Customer
- Creates and manages Customers
Code
public static function saleNoValidate($customerId, $transactionAttribs) {
$result = self::sale($customerId, $transactionAttribs);
return self::returnObjectOrThrowException('Braintree_Transaction', $result);
}