saleNoValidate() public static method

public static saleNoValidate ( integer $customerId, array $transactionAttribs ) : Transaction
$customerId integer
$transactionAttribs array
return Transaction
Example #1
0
 public function testSaleNoValidate_throwsIfInvalid()
 {
     $customer = Braintree\Customer::createNoValidate(['creditCard' => ['number' => '5105105105105100', 'expirationDate' => '05/12']]);
     $creditCard = $customer->creditCards[0];
     $this->setExpectedException('Braintree\\Exception\\ValidationsFailed');
     Braintree\Customer::saleNoValidate($customer->id, ['amount' => 'invalid']);
 }