title: Override Braintree Credit Card Error Messages on Spree and Ruby on Rails
body: <p>Whenever the user enters a empty string during checkout, the following error message is flashed: </p>
  
  <pre><code>Credit card number is required. (81714)
  </code></pre>
  
  <p>Instead of showing that to the user, I would like to show: </p>
  
  <pre><code>Credit card number is needed to process your order.
  </code></pre>
  
  <p>I believe the code is here: <a href="https://github.com/braintree/braintree_ruby/blob/master/lib/braintree/error_codes.rb" rel="nofollow">https://github.com/braintree/braintree_ruby/blob/master/lib/braintree/error_codes.rb</a></p>
  
  <p>Simplified code:</p>
  
  <pre><code>module Braintree
    module ErrorCodes
      module CreditCard
        NumberIsRequired = "81714"
       end
    end
  end
  </code></pre>
  
  <p>Tried with the following decorator without success</p>
  
  <pre><code>Braintree::ErrorCodes::CreditCard.class_eval do
    NumberIsRequired = "We need a credit card to process your order"
  end
  </code></pre>
  
  <p>is this the right approach to accomplish this? is braintree storing the error somewhere else? </p>
  
  <p>I'm on rails 3 and Spree 1.3</p>
  
  <p>Thank you in advance for your help!</p>