/** * Do the antifraud checks here instead. */ protected function post_process_get_orderstatus() { // TODO: Let's parse this into a "not so final status" attribute. $status_response = $this->transaction_response->getData(); $action = $this->findCodeAction('GET_ORDERSTATUS', 'STATUSID', $status_response['STATUSID']); // Don't bother unless we expect to be able to finalize this payment. if ($action === FinalStatus::PENDING_POKE) { $this->logger->info('Final status is PENDING_POKE, running fraud filters'); parent::post_process_get_orderstatus(); } else { $this->logger->info("Skipping fraud filters for final status {$action}."); } }