civicrm/civicrm-core — pull request #3453 by kenwest (2014-06-07 13:48:19+00:00)
Title: CRM-14813 Online event rego receipt - no credit card details shown

Fix contributeMode, munge credit_card_number, and format credit_card_exp_date.

I'm not sure that $template->_tpl_vars is the best or the standard place from which to retrieve the contributeMode.

The editing of the credit card number and expiry date are replicated from the equivalent CiviContribute code.