public function isRequestValid(TransactionInterface $transaction)
    {
        $checkUrl = $transaction->get('check');

        $checkPrivate = $this->generateUrlCheck($transaction->getOrder());

        return $checkUrl === $checkPrivate;
    }
public function isRequestValid(TransactionInterface $transaction)
    {
        $checkUrl = $transaction->get('check');

        $checkPrivate = $this->generateUrlCheck($transaction->getOrder());

        return $checkUrl === $checkPrivate;
    }
public function isRequestValid ( TransactionInterface $ transaction ) { $ checkUrl = $ transaction -> get ( 'check' ) ; $ checkPrivate = $ this -> generateUrlCheck ( $ transaction -> getOrder ( ) ) ; return $ checkUrl === $ checkPrivate ; }
return true if the request contains a valid `check` parameter.

@param TransactionInterface $transaction

@return bool
return true if the request contains a valid check parameter .