/** * Logs the request. * * @param string $type Log type (info, payment, cancel, error) * @param string $message Log message * @param array $extra Extra details to log (not including output from getLogDetails) */ public function log($type, $message, array $extra) { $upgradeRecordId = $this->getUpgradeRecordId(); $processor = $this->getProcessorId(); $transactionId = $this->getTransactionId(); $details = $this->getLogDetails() + $extra; $this->_upgradeModel->logProcessorCallback($upgradeRecordId, $processor, $transactionId, $type, $message, $details); if (!$this->alreadyprocessed) { switch ($this->_filtered['type']) { case self::PAYMENT_CHARGE_BACK: $type = self::PAYMENT_STATUS_CANCELED; break; case self::PAYMENT_VIRTUAL_CURRENCY: $type = bdPaygate_Processor_Abstract::PAYMENT_STATUS_ACCEPTED; break; case self::PAYMENT_REGULAR_OFFER: $type = bdPaygate_Processor_Abstract::PAYMENT_STATUS_ACCEPTED; break; default: $type = bdPaygate_Processor_Abstract::PAYMENT_STATUS_OTHER; } } else { $type = self::PAYMENT_STATUS_PROCESSED; } $this->_bdUpgradeModel->log($processor, $transactionId, $type, $message, $details); }
/** * Logs the request. * * @param string $type Log type (info, payment, cancel, error) * @param string $message Log message * @param array $extra Extra details to log (not including output from getLogDetails) */ public function log($type, $message, array $extra) { $upgradeRecordId = $this->getUpgradeRecordId(); $processor = $this->getProcessorId(); $transactionId = $this->getTransactionId(); $details = $this->getLogDetails() + $extra; $this->_upgradeModel->logProcessorCallback($upgradeRecordId, $processor, $transactionId, $type, $message, $details); }