setId('sales_order_create_validation_card'); } /** * Return text for block`s header * * @return string */ public function getHeaderText() { return Mage::helper('centinel')->__('3D Secure Card Validation'); } /** * Return css class name for header block * * @return string */ public function getHeaderCssClass() { return 'head-payment-method'; } /** * Prepare html output * * @return string */ protected function _toHtml() { $payment = $this->getQuote()->getPayment(); if (!$payment->getMethod() || !$payment->getMethodInstance() || $payment->getMethodInstance()->getIsDummy() || !$payment->getMethodInstance()->getIsCentinelValidationEnabled()) { return ''; } return parent::_toHtml(); } }