src/BackendService.php
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;
    }
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;
    }
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 ; }
Check if the transaction is final

@param $transaction_type
@return bool
Check if the transaction is final