public function find($id = null, $params = [])
    {
        if (!$id) {
            throw new InvalidArgumentException('We need an id');
        }

        return $this->gateway->commit('get', $this->gateway->buildUrlFromString('notifications/webhooks/'.$id), [], $params);
    }
public function find($id = null, $params = [])
    {
        if (!$id) {
            throw new InvalidArgumentException('We need an id');
        }

        return $this->gateway->commit('get', $this->gateway->buildUrlFromString('notifications/webhooks/'.$id), [], $params);
    }
public function find ( $ id = null , $ params = [ ] ) { if ( ! $ id ) { throw new InvalidArgumentException ( 'We need an id' ) ; } return $ this -> gateway -> commit ( 'get' , $ this -> gateway -> buildUrlFromString ( 'notifications/webhooks/' . $ id ) , [ ] , $ params ) ; }
Find a webhook by its id.

@param int|string $id
@param array      $params

@return \Shoperti\PayMe\Contracts\ResponseInterface
Find a webhook by its id .