plugin-icon

CommentGate

Monetize comments by requiring Stripe or PayPal payment before visitors can comment.
Évaluations
Version
1.0.0
Mis à jour récemment
Jul 15, 2026
CommentGate

CommentGate helps site owners turn comment access into a paid engagement flow. Visitors enter one email address, complete payment through Stripe or PayPal, and unlock the comment form for protected content.

Use CommentGate for paid communities, expert Q&A posts, premium discussion areas, gated announcements, niche publications, and any site where comment access should have value.

Main Features

  • Pay Before Commenting – Hide the comment textarea and submit button until payment access is verified.
  • Stripe and PayPal – Enable Stripe, PayPal, or both payment gateways.
  • Per-Content Control – Enable paid comments globally, then override settings per post, page, or supported custom post type.
  • Flexible Pricing – Set a global price, custom per-content prices, and currency from a dropdown.
  • Default USD Currency – Start with USD, then switch to another supported currency when needed.
  • Email-Based Access – Guests enter one email address for receipt and access tracking.
  • Logged-In User Support – Logged-in users can unlock comments with account-based access.
  • Auto Approve Paid Comments – Paid comments can be approved automatically after CommentGate access is verified.
  • Admin Payment Email Alerts – Send the site administrator an email when a payment completes with site From and Reply-To headers.
  • Customer Email Templates – Send payment-complete and refund emails through WordPress mail using HTML invoice format by default or simple text-style email, with an optional Media Library logo for HTML emails, editable templates, payment/refund previews, and footer.
  • Secure Email Access Links – Let customers reopen the paid comment area from their receipt until comment credits are used or access expires.
  • Role Exemptions – Let selected roles comment without payment.
  • Optional Access Expiry – Limit how long a duration-based payment unlock remains active in minutes.
  • Comment Credit Access – Sell a specific number of comments per purchase instead of time-based access. This is the default access type.
  • Per-Content Access Type – Override duration-based or comment-credit access on individual posts, pages, or custom post types.
  • Transaction History – Review payment records, filter by status, gateway, and date range, view earning summaries, export CSV reports, refund unused paid access, mark pending records, and delete records individually or in bulk.
  • Payment API Configuration – Manage Stripe and PayPal credentials from one dashboard with a setup checklist.
  • Appearance Controls – Customize payment button text and optional custom button colors.
  • WP-CLI Support – Inspect settings, list payments, view payment records, and refund unused paid access from the command line.
  • Theme-Friendly Frontend – Uses theme button styles by default while hiding unsupported comment fields before payment.
  • Webhook Support – Supports gateway webhook callbacks for payment lifecycle updates.

CommentGate Dashboard

CommentGate lives under Comments > CommentGate and includes one tabbed dashboard:

  • General Settings – Enable CommentGate, select post types, choose currency, configure price, free roles, access type, access duration in minutes, comment quantity, and auto approval.
  • Transaction History – View earning summaries, filter by paid/pending/refunded status, gateway, and date range, export CSV reports, refund unused paid access, and manage pending or deleted transactions.
  • Payment API Configuration – Add Stripe or PayPal API credentials and webhook details, then review the setup checklist.
  • Email Settings – Configure admin payment alerts, customer payment emails, refund emails, HTML invoice or simple text-style email format, optional Media Library logo or logo URL, editable email templates, payment/refund previews, and the email footer.
  • Appearance – Customize button labels and optional colors.

General Settings also includes a quick link to WordPress Website Discussion Settings so comment moderation, notifications, avatars, and default discussion rules stay easy to reach.

Payment Gateways

CommentGate can enable one or both payment gateways:

  • Stripe Checkout
  • PayPal Checkout

If both gateways are enabled, visitors can choose Stripe or PayPal on the payment wall.

Third-Party Services

CommentGate connects to third-party payment services only when an administrator configures a gateway and a visitor starts checkout, returns from checkout, when an administrator starts a refund, or when the payment service sends a configured webhook.

Stripe requests are sent to https://api.stripe.com to create Checkout Sessions, create refunds, verify webhook events, and update payment status. Data sent to Stripe may include the selected post title, payment amount, currency, plugin payment ID, access type, comment quantity, Stripe payment intent ID, and customer email when entered by a guest. Stripe terms: https://stripe.com/legal/ssa. Stripe privacy policy: https://stripe.com/privacy.

PayPal requests are sent to https://api-m.sandbox.paypal.com in sandbox mode or https://api-m.paypal.com in live mode to create orders, capture approved orders, create refunds, obtain API access tokens, verify webhook signatures, and update payment status. Data sent to PayPal may include the selected post title, payment amount, currency, plugin payment ID, PayPal order or capture ID, and configured API credentials. PayPal user agreement: https://www.paypal.com/us/legalhub/useragreement-full. PayPal privacy statement: https://www.paypal.com/us/legalhub/privacy-full.

Refunds

Administrators can refund paid transactions from Transaction History when access has not been used. For comment quantity access, unused means all purchased comment credits are still available. For duration access, unused means CommentGate has not attached the payment to a submitted comment. Refund actions call the configured Stripe or PayPal API, then mark the payment as refunded in CommentGate with refund ID, reason, and refund date fields when available.

API Documentation

Use these official guides when creating payment credentials:

  • Stripe API keys: https://docs.stripe.com/keys
  • PayPal REST API credentials: https://developer.paypal.com/api/rest/

WP-CLI Commands

CommentGate registers the wp commentgate command when WP-CLI is available.

  • wp commentgate status – Show gateway, access, and webhook setup status.
  • wp commentgate settings – Show plugin settings with API secrets masked by default.
  • wp commentgate settings --show-secrets – Show plugin settings including API secrets.
  • wp commentgate payments --status=paid – List payment records.
  • wp commentgate payment 123 – Show one payment record.
  • wp commentgate refund 123 --yes – Refund unused paid access.

Webhook Events

For Stripe, configure the webhook URL shown in CommentGate and send these events:

  • checkout.session.completed
  • charge.refunded
  • checkout.session.async_payment_failed

Stripe webhook secret is required so CommentGate can verify Stripe-signed webhook requests.

For PayPal, configure the webhook URL shown in CommentGate and send this event:

  • PAYMENT.CAPTURE.REFUNDED

Copy the PayPal webhook ID into CommentGate settings so webhook signatures can be verified.

Gratuitsur les plans payants
En procédant à l’installation, vous acceptez les Conditions d’utilisation de WordPress.com ainsi que les Conditions de l’extension tierce.
Testé jusqu’à version
WordPress 7.0.1
Cette extension est disponible en téléchargement pour votre site .