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