silverorange/store — pull request #34 by isaacgrant (2014-06-13 02:23:22+00:00)
Title: Only display card details if the flags are true, and the the matching values exist.

The old code would display an empty span if the flags and data didn't line up. For example if the expiry date existed on the payment method, but the flag said not to display it, the span would still get built. This prevents that.

Also do some code cleanup of related lines.