The Confirm and Thank you pages were not showing the correct
label - they were showing the name which we don't expect people to customise
CRM_Utils_System::mungeCreditCard(CRM_Utils_Array::value('credit_card_number', $this->_params))
);
}
+ elseif ($paymentField === 'credit_card_type') {
+ $this->assign('credit_card_type', CRM_Core_PseudoConstant::getLabel(
+ 'CRM_Core_BAO_FinancialTrxn',
+ 'card_type_id',
+ CRM_Core_PseudoConstant::getKey('CRM_Core_BAO_FinancialTrxn', 'card_type_id', $this->_params['credit_card_type'])
+ ));
+ }
else {
$this->assign($paymentField, $this->_params[$paymentField]);
}
{/if}
{else}
<div class="crm-section no-label credit_card_details-section">
- <div class="content">{$credit_card_type}</div>
- <div class="content">{$credit_card_number}</div>
+ <div class="content">{$credit_card_type|escape}</div>
+ <div class="content">{$credit_card_number|escape}</div>
<div class="content">{if $credit_card_exp_date}{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}{/if}</div>
<div class="clear"></div>
</div>