{"id":401889,"date":"2026-11-17T13:53:21","date_gmt":"2026-11-17T13:53:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/pay-per-post-paywall-with-stripe\/"},"modified":"2026-11-17T13:53:08","modified_gmt":"2026-11-17T13:53:08","slug":"postgate-buy-a-post-paywall-with-stripe","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/postgate-buy-a-post-paywall-with-stripe\/","author":18596038,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.0","stable_tag":"2.0.0","tested":"7.1.4","requires":"6.3","requires_php":"7.4","requires_plugins":null,"header_name":"PostGate - Buy a Post: Paywall with Stripe","header_author":"DavidPareto.com","header_description":"Sell lifetime access to individual posts with Stripe Checkout. Paid sections via a Gutenberg block, passwordless magic-link login.","last_updated":"2026-11-17 13:53:08","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":37,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.0.0":{"tag":"2.0.0","author":"paretodigital","date":"2026-11-17 13:53:08","revision":3807528}},"upgrade_notice":{"2.0.0":"<p>Payments now use Stripe Checkout. After updating, enter your Stripe secret key and webhook signing secret under Settings \u2192 Paid Posts.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3807520,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3807520,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3807520,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3807520,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"dppp\/paid-content":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"dppp\/paid-content","title":"Paid Content","category":"text","icon":"lock","description":"Everything inside this block is only visible to readers who bought the post.","keywords":["paywall","premium","paid","members"],"textdomain":"buy-a-post-paywall-with-stripe","usesContext":["postId"],"supports":{"html":false,"reusable":false},"editorScript":"file:.\/index.js","editorStyle":"file:.\/editor.css"}},"tagged_versions":["2.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"The buy box readers see in place of the paid part.","2":"The Paid Content block in the editor.","3":"Settings \u2192 Paid Posts with the webhook URL and Stripe keys."}},"plugin_section":[],"plugin_tags":[1336,54985,12688],"plugin_category":[],"plugin_contributors":[213168],"plugin_business_model":[],"class_list":["post-401889","plugin","type-plugin","status-publish","hentry","plugin_tags-paid-content","plugin_tags-pay-per-post","plugin_tags-paywall","plugin_contributors-paretodigital","plugin_committers-paretodigital"],"banners":{"banner":"https:\/\/ps.w.org\/postgate-buy-a-post-paywall-with-stripe\/assets\/banner-772x250.png?rev=3807520","banner_2x":"https:\/\/ps.w.org\/postgate-buy-a-post-paywall-with-stripe\/assets\/banner-1544x500.png?rev=3807520","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/postgate-buy-a-post-paywall-with-stripe\/assets\/icon-128x128.png?rev=3807520","icon_2x":"https:\/\/ps.w.org\/postgate-buy-a-post-paywall-with-stripe\/assets\/icon-256x256.png?rev=3807520","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Buy a Post Paywall with Stripe lets you sell single posts. Readers pay once with Stripe Checkout and keep access to that post. They don't need a subscription or a password.<\/p>\n\n<p><strong>How it works for your readers<\/strong><\/p>\n\n<ol>\n<li>A reader sees the teaser of a post and a box with a <strong>Buy access \u2013 $9<\/strong> button.<\/li>\n<li>They pay on Stripe's hosted checkout page (cards, Apple Pay, Google Pay, Link, PayPal and other methods you enable in Stripe).<\/li>\n<li>They return to the post and get an email with a sign-in link.<\/li>\n<li>The link signs them in and the full post is visible. Later they sign in again by entering their email and clicking the link they receive.<\/li>\n<\/ol>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li><strong>Paid Content block<\/strong>: put any blocks inside it (text, images, embeds \u2026). Everything outside the block stays free.<\/li>\n<li><strong>Price per post<\/strong> in the editor sidebar, or one default price for all paid posts.<\/li>\n<li><strong>No products to manage in Stripe.<\/strong> The post title and price are sent with each checkout, so they appear on the checkout page, the receipt and in your Stripe payments list.<\/li>\n<li><strong>Automatic accounts.<\/strong> A WordPress account (role <em>Subscriber<\/em>) is created for each new buyer.<\/li>\n<li><strong>Passwordless sign-in<\/strong> with single-use magic links. Magic links only work for reader accounts, not for editors or admins.<\/li>\n<li><strong>Server-side protection.<\/strong> The paid part is removed on the server: on the page, in the REST API, in RSS feeds and in automatic excerpts. The price is set on the server and can't be changed in the browser.<\/li>\n<li><strong>Secure webhooks.<\/strong> Every Stripe webhook is checked with its signature, and duplicate deliveries are ignored.<\/li>\n<li><strong>Manual access control.<\/strong> On the user profile you can see a user's purchases, grant access to a post or take it away.<\/li>\n<li><strong>Shortcodes<\/strong> for a sign-in\/sign-out button (<code>[dppp_signin]<\/code>) and a \"My purchases\" list (<code>[dppp_my_purchases]<\/code>).<\/li>\n<li><strong>Test and live mode.<\/strong> The settings page shows which Stripe mode you are using.<\/li>\n<li><strong>Hooks for developers<\/strong> (see the FAQ).<\/li>\n<\/ul>\n\n<p>Prices are in USD.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to the Stripe API (https:\/\/api.stripe.com) to take payments. It cannot work without a Stripe account.<\/p>\n\n<ul>\n<li><strong>When a reader clicks \"Buy access\"<\/strong>, your site sends Stripe the post ID, post title, price, currency and the return URLs of the post. If the reader is signed in, their email address is sent too. The reader is then sent to Stripe's checkout page, where they enter their payment details and email directly with Stripe.<\/li>\n<li><strong>After payment<\/strong>, Stripe sends a webhook to your site with the checkout session, including the buyer's email address and Stripe customer ID.<\/li>\n<\/ul>\n\n<p>The service is provided by Stripe. Stripe Services Agreement: https:\/\/stripe.com\/legal\/ssa. Stripe Privacy Policy: https:\/\/stripe.com\/privacy.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin under <strong>Plugins \u2192 Add New<\/strong> (or upload the ZIP), then activate it.<\/li>\n<li>Go to <strong>Settings \u2192 Paid Posts<\/strong>.<\/li>\n<li>Connect Stripe as described in the next section.<\/li>\n<li>Set up SMTP for your site (for example with the <em>WP Mail SMTP<\/em> plugin and a service like Postmark, Brevo or Mailgun). Without it, sign-in emails often end up in spam or never arrive.<\/li>\n<\/ol>\n\n<h4>Connecting Stripe<\/h4>\n\n<p>You need a Stripe account. Start in <strong>test mode<\/strong> so you can try everything without real payments. Test mode and live mode each have their own keys and webhooks.<\/p>\n\n<p><strong>Step 1: Turn on test mode<\/strong><\/p>\n\n<p>Log in to the Stripe Dashboard and turn on the <strong>Test mode<\/strong> switch (in newer dashboards, open a <em>sandbox<\/em>).<\/p>\n\n<p><strong>Step 2: Copy your secret key<\/strong><\/p>\n\n<ol>\n<li>In Stripe, go to <strong>Developers \u2192 API keys<\/strong>.<\/li>\n<li>Copy the <strong>Secret key<\/strong>. In test mode it starts with <code>sk_test_<\/code>.<\/li>\n<li>In WordPress, paste it into <strong>Settings \u2192 Paid Posts \u2192 Secret key<\/strong>.<\/li>\n<\/ol>\n\n<p>You can also use a restricted key (<code>rk_test_\u2026<\/code> \/ <code>rk_live_\u2026<\/code>) if it has write access to <em>Checkout Sessions<\/em>.<\/p>\n\n<p><strong>Step 3: Add the webhook<\/strong><\/p>\n\n<p>The webhook tells your site that a payment was successful. Without it, buyers don't get access.<\/p>\n\n<ol>\n<li>In WordPress, open <strong>Settings \u2192 Paid Posts<\/strong> and copy the <strong>Webhook endpoint URL<\/strong> in the Stripe section. It looks like <code>https:\/\/your-site.com\/wp-json\/dppp\/v1\/stripe-webhook<\/code>.<\/li>\n<li>In Stripe, go to <strong>Developers \u2192 Webhooks<\/strong> and click <strong>Add endpoint<\/strong> (in newer dashboards: <strong>Add destination<\/strong>).<\/li>\n<li>If Stripe asks for these options, choose:\n\n<ul>\n<li><strong>Events from:<\/strong> Your account<\/li>\n<li><strong>Payload style:<\/strong> Snapshot. Don't choose Thin. Thin events don't contain the buyer's email or the post, so the plugin can't grant access.<\/li>\n<li><strong>API version:<\/strong> keep the default.<\/li>\n<\/ul><\/li>\n<li>Select these two events:\n\n<ul>\n<li><code>checkout.session.completed<\/code><\/li>\n<li><code>checkout.session.async_payment_succeeded<\/code><\/li>\n<\/ul><\/li>\n<li>If asked for the destination type, choose <strong>Webhook endpoint<\/strong>.<\/li>\n<li>Paste the URL as the endpoint URL and save.<\/li>\n<li>Open the endpoint, click <strong>Signing secret \u2192 Reveal<\/strong> and copy the value. It starts with <code>whsec_<\/code>.<\/li>\n<li>In WordPress, paste it into <strong>Webhook signing secret<\/strong>.<\/li>\n<\/ol>\n\n<p><strong>Step 4: Set a default price<\/strong><\/p>\n\n<p>Enter a <strong>Default price (USD)<\/strong>, for example <code>9<\/code>. It is used for every paid post that has no price of its own. The minimum is $0.50.<\/p>\n\n<p>Click <strong>Save Changes<\/strong>. The <strong>Mode<\/strong> row on the settings page should now show <strong>TEST<\/strong>.<\/p>\n\n<p><strong>Step 5 (optional): Customize the checkout page<\/strong><\/p>\n\n<p>In the Stripe Dashboard:<\/p>\n\n<ul>\n<li><strong>Settings \u2192 Branding<\/strong>: logo, colors and business name on the checkout page.<\/li>\n<li><strong>Settings \u2192 Payment methods<\/strong>: choose which payment methods your buyers see.<\/li>\n<\/ul>\n\n<p><strong>Step 6: Test a purchase<\/strong><\/p>\n\n<ol>\n<li>Create a post with a <strong>Paid Content<\/strong> block (see below) and publish it.<\/li>\n<li>Open the post in a private browser window, where you are signed out. You should see the <strong>Buy access<\/strong> box.<\/li>\n<li>Click <strong>Buy access<\/strong> and pay with the test card <code>4242 4242 4242 4242<\/code>, any future expiry date and any CVC.<\/li>\n<li>You return to the post with a thank-you message.<\/li>\n<li>In Stripe, open <strong>Developers \u2192 Webhooks \u2192 your endpoint<\/strong>. The delivery should show status <strong>200<\/strong>.<\/li>\n<li>Open the email, click the link and then <strong>Continue to sign in<\/strong>. The full post is now visible.<\/li>\n<\/ol>\n\n<p><strong>Step 7: Go live<\/strong><\/p>\n\n<ol>\n<li>Turn off test mode in Stripe.<\/li>\n<li>Create the same webhook again in live mode (same URL, same two events).<\/li>\n<li>In WordPress, replace the secret key with your live key (<code>sk_live_\u2026<\/code>) and the signing secret with the live endpoint's <code>whsec_\u2026<\/code> value.<\/li>\n<li>Save. The <strong>Mode<\/strong> row now shows <strong>LIVE<\/strong>.<\/li>\n<\/ol>\n\n<h4>Writing a paid post<\/h4>\n\n<ol>\n<li>Write the free teaser as usual.<\/li>\n<li>Add the <strong>Paid Content<\/strong> block (search for \"paid\" or \"paywall\") and write the paid part inside it.<\/li>\n<li>Optional: in the sidebar under <strong>Post \u2192 Paid content<\/strong>, set a <strong>Price (USD)<\/strong> for this post. Leave it empty to use the default price.<\/li>\n<\/ol>\n\n<p>You can use more than one Paid Content block in a post. Readers who haven't bought the post see one buy box where the first block is. Free text after the paid part stays visible. Editors and admins always see the full post.<\/p>\n\n<h4>Adding a sign-in button<\/h4>\n\n<p>Readers need a way to sign in on another device or after signing out. Use one of these:<\/p>\n\n<ul>\n<li>A link to <code>#dppp-signin<\/code>. Any link ending in <code>#dppp-signin<\/code> opens the sign-in window.<\/li>\n<li>The shortcode <code>[dppp_signin]<\/code>. It shows \"Sign in\" or \"Sign out\". Change the labels like this: <code>[dppp_signin signin_label=\"Log in\" signout_label=\"Log out\"]<\/code>.<\/li>\n<li>The CSS class <code>dppp-signin-trigger<\/code> on any element.<\/li>\n<\/ul>\n\n<p>To give buyers a list of their posts, create a page with the shortcode <code>[dppp_my_purchases]<\/code>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20i%20need%20to%20create%20products%20or%20prices%20in%20stripe%3F\"><h3>Do I need to create products or prices in Stripe?<\/h3><\/dt>\n<dd><p>No. The plugin sends the post title and price with every checkout.<\/p><\/dd>\n<dt id=\"payments%20go%20through%2C%20but%20buyers%20don%27t%20get%20access.%20what%27s%20wrong%3F\"><h3>Payments go through, but buyers don't get access. What's wrong?<\/h3><\/dt>\n<dd><p>Almost always the webhook. Check that:<\/p>\n\n<ul>\n<li>the endpoint URL in Stripe matches the one on the settings page,<\/li>\n<li>both events are selected and the payload style is <strong>Snapshot<\/strong> (not Thin),<\/li>\n<li>the signing secret in WordPress belongs to this endpoint and to the same mode (test or live) as your secret key.<\/li>\n<\/ul>\n\n<p>In Stripe, <strong>Developers \u2192 Webhooks \u2192 your endpoint<\/strong> lists every delivery and its response. Stripe retries failed deliveries automatically. If <code>WP_DEBUG_LOG<\/code> is on, the plugin writes rejected webhooks and checkout errors to <code>wp-content\/debug.log<\/code>.<\/p>\n\n<p>Security or firewall plugins and services that block requests to <code>\/wp-json\/<\/code> can also stop the webhook.<\/p><\/dd>\n<dt id=\"buyers%20don%27t%20receive%20the%20email.\"><h3>Buyers don't receive the email.<\/h3><\/dt>\n<dd><p>Set up SMTP (see Installation). WordPress's default mail function is often blocked or marked as spam.<\/p><\/dd>\n<dt id=\"why%20does%20the%20email%20link%20open%20a%20page%20with%20a%20%22continue%20to%20sign%20in%22%20button%3F\"><h3>Why does the email link open a page with a \"Continue to sign in\" button?<\/h3><\/dt>\n<dd><p>Email scanners (for example Outlook Safe Links) open links before the reader does. Because each link works only once, the scanner would use it up. The extra click prevents this.<\/p><\/dd>\n<dt id=\"how%20long%20are%20the%20links%20valid%3F\"><h3>How long are the links valid?<\/h3><\/dt>\n<dd><p>The link in the purchase email is valid for 7 days. A link requested through <strong>Sign in<\/strong> is valid for 30 minutes. Each link works once. You can change the times with the <code>dppp_purchase_link_ttl<\/code> and <code>dppp_signin_link_ttl<\/code> filters.<\/p><\/dd>\n<dt id=\"can%20admins%20sign%20in%20with%20a%20magic%20link%3F\"><h3>Can admins sign in with a magic link?<\/h3><\/dt>\n<dd><p>No. Admins and editors sign in with their password through <code>wp-login.php<\/code>, so someone who gets into their mailbox can't reach the admin area. Developers can change this with the <code>dppp_magic_link_allowed<\/code> filter.<\/p><\/dd>\n<dt id=\"can%20buyers%20open%20the%20wordpress%20dashboard%3F\"><h3>Can buyers open the WordPress dashboard?<\/h3><\/dt>\n<dd><p>No. Accounts the plugin creates for buyers don't see the admin bar and are sent to the home page if they open wp-admin. Other users, for example customers of a shop plugin or existing subscribers, are not affected, even if they buy a post. Use the <code>dppp_block_wp_admin<\/code> filter to allow buyer accounts into wp-admin.<\/p><\/dd>\n<dt id=\"does%20a%20refund%20in%20stripe%20remove%20access%3F\"><h3>Does a refund in Stripe remove access?<\/h3><\/dt>\n<dd><p>No. If you refund a buyer and want to remove access, do it on their user profile under <strong>Paid posts<\/strong>.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20page%20caching%3F\"><h3>Does it work with page caching?<\/h3><\/dt>\n<dd><p>Yes, as long as signed-in users skip the page cache. Most caching plugins do this by default. Please check your caching settings.<\/p><\/dd>\n<dt id=\"is%20the%20paid%20text%20really%20hidden%3F\"><h3>Is the paid text really hidden?<\/h3><\/dt>\n<dd><p>The paid part is removed on the server: on the page, in the REST API, in RSS feeds and in automatic excerpts. WordPress search can still find the post through words in the paid part, but it doesn't show them. To check your site, put a unique test sentence in the paid part, sign out, and make sure it doesn't appear in the page source, <code>\/feed<\/code>, <code>\/wp-json\/wp\/v2\/posts<\/code> or the output of your SEO plugin.<\/p><\/dd>\n<dt id=\"who%20handles%20sales%20tax%20and%20vat%3F\"><h3>Who handles sales tax and VAT?<\/h3><\/dt>\n<dd><p>You do. Stripe processes the payment, but you are the seller. You can turn on Stripe Tax with the <code>dppp_checkout_session_params<\/code> filter (set <code>automatic_tax[enabled]<\/code> to <code>true<\/code>) after setting it up in Stripe. If you sell to consumers in the EU, also check the rules on the right of withdrawal for digital content.<\/p><\/dd>\n<dt id=\"can%20i%20use%20it%20with%20other%20post%20types%3F\"><h3>Can I use it with other post types?<\/h3><\/dt>\n<dd><p>Yes. Add them with the <code>dppp_post_types<\/code> filter. By default only posts are supported.<\/p><\/dd>\n<dt id=\"which%20hooks%20are%20available%3F\"><h3>Which hooks are available?<\/h3><\/dt>\n<dd><ul>\n<li><code>dppp_post_types<\/code> (filter): post types that can have paid content.<\/li>\n<li><code>dppp_checkout_session_params<\/code> (filter): change the Stripe Checkout Session, for example Stripe Tax, <code>allow_promotion_codes<\/code> or <code>locale<\/code>.<\/li>\n<li><code>dppp_purchase_completed<\/code> (action): runs after a successful purchase.<\/li>\n<li><code>dppp_customer_created<\/code> (action): runs after a new buyer account was created.<\/li>\n<li><code>dppp_customer_role<\/code> (filter): role for new buyer accounts (default <code>subscriber<\/code>).<\/li>\n<li><code>dppp_user_has_access<\/code> (filter): custom access rules.<\/li>\n<li><code>dppp_purchase_link_ttl<\/code> \/ <code>dppp_signin_link_ttl<\/code> (filters): how long links stay valid, in seconds.<\/li>\n<li><code>dppp_magic_link_allowed<\/code> (filter): allow magic links for other roles.<\/li>\n<li><code>dppp_is_reader<\/code> (filter): which users count as buyer accounts (admin bar hidden, no wp-admin).<\/li>\n<li><code>dppp_block_wp_admin<\/code> (filter): return <code>false<\/code> to let buyer accounts open wp-admin.<\/li>\n<li><code>dppp_client_ip<\/code> (filter): the real visitor IP behind Cloudflare or a proxy, used for rate limiting.<\/li>\n<li><code>dppp_mail_headers<\/code> (filter): headers for the plugin's emails.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Payments now use Stripe Checkout.<\/li>\n<li>Paid sections with the Paid Content block.<\/li>\n<li>Passwordless sign-in with magic links.<\/li>\n<\/ul>","raw_excerpt":"Sell lifetime access to single posts with Stripe Checkout. Mark paid sections with a block. Buyers sign in with a magic link, no password.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/401889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=401889"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/paretodigital"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=401889"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=401889"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=401889"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=401889"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=401889"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=401889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}