public function doVerifyTransaction(array $options = array()) { $this->setOptions($options); $this->_checkRequiredOptions(array('referenceId', 'merchantCode')); try { $soapClient = new SoapClient($this->getWSDL()); $invoice = Model_Invoice::id($this->getInvoiceId()); $pin = $this->_config['merchantCode']; $au = $this->_config['referenceId']; $amount = $invoice->price; $status = 1; $res = $soapClient->PaymentVerification($pin, $au, $amount, $status); } catch (SoapFault $e) { $this->log($e->getMessage()); throw new Exception('SOAP Exception: ' . $e->getMessage()); } if ($res == 1) { return 1; } else { return $res; } // VerifyError }