public function isFinal($transaction_type)
    {
        if (in_array($transaction_type, [
            Transaction::TYPE_CAPTURE_AUTHORIZATION,
            Transaction::TYPE_DEBIT,
            Transaction::TYPE_PURCHASE,
            Transaction::TYPE_AUTHORIZATION,
            Transaction::TYPE_PENDING_CREDIT,
            Transaction::TYPE_PENDING_DEBIT,
            Transaction::TYPE_AUTHORIZATION_ONLY,
            Transaction::TYPE_CHECK_ENROLLMENT,
            Transaction::TYPE_REFERENCED_AUTHORIZATION
        ])) {
            return false;
        }

        return true;
    }