/** * this method is called if we are just authorising * a transaction */ public function authorize(Varien_Object $payment, $amount) { $order = $payment->getOrder(); $orderId = $order->getIncrementId(); $amountToPass = $amount * 100; if (!empty($order)) { $hash = array('orderId' => $orderId, 'id' => $orderId, 'amount' => $amountToPass, 'orderSource' => "ecommerce", 'verify' => 'true', 'billToAddress' => $this->getBillToAddress($payment), 'shipToAddress' => $this->getAddressInfo($payment), 'echeck' => $this->getEcheckInfo($payment)); $merchantData = $this->merchantData($payment); $hash_in = array_merge($hash, $merchantData); $litleRequest = new LitleOnlineRequest(); $litleResponse = $litleRequest->echeckVerificationRequest($hash_in); $this->processResponse($payment, $litleResponse); } }