Shopify/active_merchant — pull request #597 by natejgreene (2013-02-21 17:29:51+00:00)
Title: cybersource:  Check that payment_method_or_reference is not a string before getting the card brand

Looks like this was introduced in 1.31.0 card_brand does not handle reference strings, so a check needs to be made before calling it.