/**
  * Get transaction status from gateway response array and change payment status to appropriate
  *
  * @param Varien_Object $from
  * @param Mage_Payment_Model_Info $to
  * @return Enterprise_Pbridge_Model_Payment_Method_Authorizenet
  */
 public function importPaymentInfo(Varien_Object $from, Mage_Payment_Model_Info $to)
 {
     $approvedTransactionStatuses = array(self::TRANSACTION_STATUS_AUTHORIZED_PENDING_PAYMENT, self::TRANSACTION_STATUS_CAPTURED_PENDING_SETTLEMENT);
     $transactionStatus = $from->getTransactionStatus();
     if (in_array($transactionStatus, $approvedTransactionStatuses)) {
         $to->setIsTransactionApproved(true);
     } elseif (in_array($transactionStatus, array(self::TRANSACTION_STATUS_VOIDED, self::TRANSACTION_STATUS_DECLINED))) {
         $to->setIsTransactionDenied(true);
     }
     return $this;
 }