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 testIpAddressIpv6() { $payment = new Varien_Object(); $order = new Varien_Object(); $order->setRemoteIp("2001:0db8:0000:0000:0000:ff00:0042:8329"); $payment->setOrder($order); $output = Litle_CreditCard_Model_PaymentLogic::getFraudCheck($payment); $this->assertEquals(array(), $output); }
public function testGetModelPalorusVault_NotSetYet() { $litle = new Litle_CreditCard_Model_PaymentLogic(); $vault = $litle->getModelPalorusVault(); $this->assertNotNull($vault); }
public function testAccountUpdater8() { $element = Litle_CreditCard_Model_PaymentLogic::getUpdater($this->domNoNewCard, 'newCardTokenInfo'); $this->assertTrue($element === NULL); }
public function testCustomBilling6() { $url = Litle_CreditCard_Model_PaymentLogic::getCustomBilling('www.longerlongerlonlonger.tv'); $this->assertEquals('longerlongerl', $url['url']); }