Gate Ghost Posts Behind Paid Stripe Subscriptions on a Self-Hosted Instance
Use Ghost's built-in memberships and Stripe test mode to put posts behind a paywall without plugins, then verify access before going live.
08 Aug 2026, 05:25 UTC

You publish a detailed guide on your self-hosted Ghost site, but you only want paying subscribers to read it. Ghost includes built-in memberships and a native Stripe connection, so you do not need a plugin or custom code to put a post behind a checkout. The practical takeaway is to connect Stripe in test mode, create a subscription tier, mark the post as paid-only, then verify the checkout prompt appears for a logged-out visitor before switching to live mode.
Ghost handles membership state; Stripe handles cards
In this setup, "self-hosted Ghost" means you run the Ghost server yourself rather than using Ghost(Pro). A "membership tier" is a recurring price—such as $5 per month—that readers can subscribe to. A "webhook" is an HTTP notification Stripe sends to Ghost when a subscription succeeds, is canceled, or a card expires. Ghost stores membership state, such as active or canceled, but does not store full card details. Stripe handles the checkout page, card storage, and actual payments.
Preflight checks before connecting Stripe
Your Ghost instance should run on a supported Node.js LTS release with the Ghost CLI installed; exact supported versions change with Ghost releases, so check the current Ghost documentation for your version. Stripe must be able to reach your site over public HTTPS to deliver webhooks, so a local-only or password-protected staging URL will not work.
| Mode | Use case | Data risk |
|---|---|---|
| Stripe test mode | Fake cards, no real charges; use this before announcing paid content | None for real money |
| Stripe live mode | Real cards and real charges; enable only after verification | Real customer payments |
Worked example: connect Stripe in test mode and gate a post
Check Ghost CLI version
Run ghost version in the terminal on the server, from the Ghost install directory (commonly /var/www/ghost). Run as the ghost user or with sudo -u ghost. Expected output: the installed Ghost and CLI versions. Risk: running as root can change file ownership, and running from the wrong directory returns an error instead of a version.
Connect Stripe and create a tier
- Open Ghost Admin at
https:///ghostand sign in as an administrator. - Go to Settings > Membership > Stripe, choose Connect Stripe, and select test mode. No real money moves in this mode.
- Under Membership tiers, add a monthly tier. Set a price in your currency and save.
- Open a post in the editor, open Post settings, change access from Public to Paid only, and select the tier you just created. Publish the post.
Verify the paywall in a private window
Open an incognito or private browser window and visit the post URL. A logged-out visitor should see a membership or checkout prompt instead of the full post. If you have a test member account with an active test subscription, log in and confirm the post loads. Do not verify while logged in as an administrator, because admins can bypass the paywall.
Diagnostic checks if access control fails
- If the full post still appears to logged-out visitors, confirm the post access is set to Paid only and that you are not viewing the site while logged into Ghost Admin.
- If Stripe subscription events do not reach Ghost, compare the webhook URL shown in Ghost Admin under Settings > Membership > Stripe with the endpoint in the Stripe Developer Dashboard. Also confirm your server firewall allows inbound HTTPS on port 443.
Limitations and rollback
Changing a published post from free to paid-only can break existing links and reduce search visibility for non-members. Member newsletters and paid content share the same member list, so segmenting by tier requires extra work outside Ghost's default UI. Ghost stores membership state but not card details, so refunds and disputes are managed in Stripe.
Connecting Stripe changes instance state. To roll back, go to Settings > Membership > Stripe and select Disconnect. This stops test checkout flows but does not automatically delete test member records or tiers; remove those manually if you want a clean slate.
Closing
Start in Stripe test mode, verify the paywall in a private window, and confirm webhook delivery before switching to live mode. If a Stripe event is missed, memberships can fall out of sync, so check the Stripe dashboard and Ghost member list together after the first few real subscriptions.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.