spree/spree — pull request #2923 by robertoles (2013-04-22 14:02:55+00:00)
Title: Using valid credit card brand in development mode

When using a gateway which doesnt use valid card numbers as test card numbers for their test server (for example data cash use visa numbers that start with a 1: https://testserver.datacash.com/software/download.cgi?show=magicnumbers) CreditCard#brand will always return nil. To solve this I have replace the brand lookup with spree_cc_type which always returns 'visa' in development mode.