How to show all paid post on custom page

I am working on my website and I create a custom page to show paid posts but I cannot find the correct way to show it, this is my code:

{{!< default}}
  <div class='c-archive'>
    <h1 class='c-archive__title'>Pro Lessons</h1>
  </div>

  <div class='o-grid'>
    {{#get "posts" limit="all" filter="visibility:paid"}}
      {{#foreach posts}}
        {{> post-card-custom }}
      {{/foreach}}
    {{/get}}
  </div>
  1. Create a file on your theme root dir for example custom-paid.hbs
  2. Paste your codes to the hbs file you just created. rezip the theme & upload
  3. Now go to your ghost admin Create a page for example List of paid posts
  4. Now on page setting go below on template section you will see a new template called Paid on the dropdown
  5. Select the template & save & on that page all your paid posts will show up

Hope this helps

works for other pages like free posts and featured, but continue without work on the paid posts, I don`t know how to solve this if my code is wrong, then the other pages don’t would be working, but they are working, so I think that maybe is a problem with the helper or something similar.

This is the solution

{{!< default}}

{{#post}}

  <div class='c-archive'>
    <h1 class='c-archive__title'>Pro Lessons</h1>
  </div>

  <div class='o-grid'>
  {{#get 'posts'}}
    {{#foreach posts visibility='all'}}
      {{#has visibility="paid"}}
        {{> post-card-custom }}
      {{/has}}
    {{/foreach}}
  {{/get}}

  </div>

{{/post}}