I work at Braintree. If you have more questions or are looking for more help with your integration, please get in touch with our support team.
Consider using Braintree's Drop-in Payment UI, which will do a client side validation of the credit card.
Otherwise, you have to create or update a credit card, directly or indirectly, in order to run a card verification:
result = Braintree::Customer.create(
:first_name => "Fred",
:last_name => "Jones",
:credit_card => {
:cardholder_name => "Fred Jones",
:number => "4111111111111111",
:cvv => "123",
:expiration_date => "05/2020",
:options => {
:verify_card => true
}
}
)