function Braintree_TransactionTest::testSaleNoValidate in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ TransactionTest.php, line 435
Class
Code
function testSaleNoValidate() {
$transaction = Braintree_Transaction::saleNoValidate(array(
'amount' => '100.00',
'creditCard' => array(
'number' => '5105105105105100',
'expirationDate' => '05/12',
),
));
$this
->assertEquals(Braintree_Transaction::AUTHORIZED, $transaction->status);
$this
->assertEquals(Braintree_Transaction::SALE, $transaction->type);
$this
->assertEquals('100.00', $transaction->amount);
$this
->assertEquals('510510', $transaction->creditCardDetails->bin);
$this
->assertEquals('5100', $transaction->creditCardDetails->last4);
}