function Braintree_TransactionTest::testSale_withMerchantAccountId in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ TransactionTest.php, line 379
Class
Code
function testSale_withMerchantAccountId() {
$result = Braintree_Transaction::sale(array(
'amount' => '100.00',
'merchantAccountId' => Braintree_TestHelper::nonDefaultMerchantAccountId(),
'creditCard' => array(
'number' => '5105105105105100',
'expirationDate' => '05/12',
),
));
$this
->assertTrue($result->success);
$transaction = $result->transaction;
$this
->assertEquals(Braintree_TestHelper::nonDefaultMerchantAccountId(), $transaction->merchantAccountId);
}