예제 #1
0
 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();
 }
예제 #2
0
 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();
 }