[WordPress] 外掛分享: CommentGate

首頁外掛目錄 › CommentGate
WordPress 外掛 CommentGate 的封面圖片
全新外掛
安裝啟用
尚無評分
15 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-07-14

內容簡介

CommentGate 是一款幫助網站擁有者將評論權限轉換為付費互動流程的外掛。訪客需輸入電子郵件並透過 Stripe 或 PayPal 完成付款,才能解鎖受保護內容的評論表單。

【主要功能】
• 付費後才能評論 - 在驗證付款前隱藏評論區域和提交按鈕
• 支援 Stripe 和 PayPal - 可啟用一種或兩種支付網關
• 內容控制 - 可針對每篇文章或頁面設定付費評論
• 彈性定價 - 設定全球價格或自訂內容價格
• 自動批准付費評論 - 在驗證後自動批准評論
• 交易歷史 - 檢視付款記錄並匯出 CSV 報告

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

文章
Filter
Apply Filters
Mastodon