public function create($params = [])
    {
        if (!array_key_exists('event_types', $params)) {
            $params['event_types'] = [[
                'name' => '*',
            ]];
        }

        return $this->gateway->commit('post', $this->gateway->buildUrlFromString('notifications/webhooks'), $params);
    }
public function create($params = [])
    {
        if (!array_key_exists('event_types', $params)) {
            $params['event_types'] = [[
                'name' => '*',
            ]];
        }

        return $this->gateway->commit('post', $this->gateway->buildUrlFromString('notifications/webhooks'), $params);
    }
public function create ( $ params = [ ] ) { if ( ! array_key_exists ( 'event_types' , $ params ) ) { $ params [ 'event_types' ] = [ [ 'name' => '*' , ] ] ; } return $ this -> gateway -> commit ( 'post' , $ this -> gateway -> buildUrlFromString ( 'notifications/webhooks' ) , $ params ) ; }
Create a webhook.

@param array $params

@return \Shoperti\PayMe\Contracts\ResponseInterface
Create a webhook .