- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
if ($this->_hasParam('error')) {
if (intval(htmlentities($this->getRequest()->getParam('error'))) == -1100) {
$this->payment_messages->addMess($this->translate->translate('please.remember.fill'));
} elseif (intval(htmlentities($this->getRequest()->getParam('error'))) == -1300) {
$this->payment_messages->addMess($this->translate->translate('credit.card.not.accepted'));
} elseif (intval(htmlentities($this->getRequest()->getParam('error'))) == -1022) {
$this->payment_messages->addMess($this->translate->translate('transaction.declined.card.number'));
} elseif (intval(htmlentities($this->getRequest()->getParam('error'))) == -1018) {
$this->payment_messages->addMess($this->translate->translate('transaction.declined.card.number'));
} else {
$this->payment_messages->addMess($this->translate->translate('payment.system.error'));
}
$this->view->payment_messages = $this->payment_messages->getMess();
}
больше неразберихи в код, еще больше!
Видимо team leader'у зарплату не платят, вот он протянутые руки кодит (=