public function getTxnIdHtml() { $litle = new Litle_CreditCard_Model_PaymentLogic(); $url = $litle->getConfigData("url"); $litleTxnId = $this->_txn->getTxnId(); $txnType = $this->_txn->getTxnType(); $method = $this->_txn->getOrderPaymentObject()->getMethod(); $html = Litle_Palorus_Block_Adminhtml_Transaction::_getTxnIdHtml($txnType, $method, $url, $litleTxnId); if ($html == NULL) { return parent::getTxnIdHtml(); } else { return $html; } }
public function testLocal() { $html = Litle_Palorus_Block_Adminhtml_Transaction::_getTxnIdHtml('authorization', 'creditcard', 'http://localhost:2180/vap/communicator/online', 123); $this->assertEquals("<a href='http://localhost:2190/ui/reports/payments/authorization/123'>123</a>", $html); }