private function getTransactionIdFromOrderId($orderId){ $transaction = new Pap_Common_Transaction(); try { $output = $transaction->getFirstRecordWith(Pap_Db_Table_Transactions::ORDER_ID, $orderId, array(Pap_Common_Constants::STATUS_APPROVED, Pap_Common_Constants::STATUS_PENDING)); $this->debug('Parent transaction for refund found by orderId.'); } catch (Gpf_DbEngine_NoRowException $e) { $output = $transaction->getFirstRecordWith(Pap_Db_Table_Transactions::DATA1, $orderId, array(Pap_Common_Constants::STATUS_APPROVED, Pap_Common_Constants::STATUS_PENDING)); $this->debug('Parent transaction for refund found by data1.'); } return $output->getId(); }
private function getTransactionIdFromOrderId($orderId){ $transaction = new Pap_Common_Transaction(); $output = $transaction->getFirstRecordWith(Pap_Db_Table_Transactions::ORDER_ID, $orderId, array(Pap_Common_Constants::STATUS_APPROVED, Pap_Common_Constants::STATUS_PENDING)); return $output->getId(); }