src/Client.php
public function execute(Request $request, $maxTries = 3)
	{
		try {
			$response = $this->getResponse($request, $maxTries);

			return $this->validateResponse($response);
		} catch (TransactionInProgressException $ex) {
			throw new TransactionInProgressException($ex->getRequest(), $ex->getResponse(), $maxTries); // Throw a new exception with the correct maximum tries.
		}
	}
public function execute(Request $request, $maxTries = 3)
	{
		try {
			$response = $this->getResponse($request, $maxTries);

			return $this->validateResponse($response);
		} catch (TransactionInProgressException $ex) {
			throw new TransactionInProgressException($ex->getRequest(), $ex->getResponse(), $maxTries); // Throw a new exception with the correct maximum tries.
		}
	}
public function execute ( Request $ request , $ maxTries = 3 ) { try { $ response = $ this -> getResponse ( $ request , $ maxTries ) ; return $ this -> validateResponse ( $ response ) ; } catch ( TransactionInProgressException $ ex ) { throw new TransactionInProgressException ( $ ex -> getRequest ( ) , $ ex -> getResponse ( ) , $ maxTries ) ; // Throw a new exception with the correct maximum tries. } }
Get the response, and then pass it to the validator.

@param \StGeorgeIPG\Request $request
@param integer              $maxTries

@return \StGeorgeIPG\Response

@throws \StGeorgeIPG\Exceptions\TransactionInProgressException
Get the response and then pass it to the validator .