function Braintree_CreditCardTest::testPayrollCard in Commerce Braintree 7
File
- braintree_php/
tests/ integration/ CreditCardTest.php, line 980
Class
Code
function testPayrollCard() {
$customer = Braintree_Customer::createNoValidate();
$result = Braintree_CreditCard::create(array(
'customerId' => $customer->id,
'cardholderName' => 'Cardholder',
'number' => Braintree_CreditCardNumbers_CardTypeIndicators::PAYROLL,
'expirationDate' => '05/12',
'options' => array(
'verifyCard' => true,
),
));
$this
->assertEquals(Braintree_CreditCard::PAYROLL_YES, $result->creditCard->payroll);
}