If you have a paywall, Google will still crawl and index your site, but they'll only do so based on what's available outside the paywall.
If you try to trick Google by showing Googlebot the full article but throwing up a paywall for everybody else, Google will penalize you.
Details: https://support.google.com/news/publisher/answer/40543?hl=en