[WordPress] 外掛分享: EasySecure Subscriptions

首頁 › 外掛目錄 › EasySecure Subscriptions
全新外掛
安裝啟用
—
尚無評分
11 天前
最後更新
0%
問題解決
WordPress 6.0+ PHP 8.0+ v1.2.0 上架:2026-02-05

內容簡介

總結:EasySecure Subscriptions是一個輕量且安全的外掛程式,可在不依賴大量外掛的情況下,為WooCommerce增加自訂訂閱功能。適合希望擁有完全控制權的商店擁有者,並希望有簡單的定期付款方式,而不需使用官方WooCommerce Subscriptions擴充功能。

問題與答案:
1. EasySecure Subscriptions適合哪些商店擁有者使用?
- 答:它適合希望擁有完全控制權的商店擁有者,並希望有簡單的定期付款方式,而不需使用官方WooCommerce Subscriptions擴充功能。

2. 這個外掛程式的主要特點有哪些?
- 答:主要特點包括:
- 產品級別的訂閱配置
- 使用WooCommerce cron自動執行的定期續訂
- 安全基於令牌的支付(Stripe和兼容的支付網關)
- 客戶可以從我的帳戶取消訂閱
- 管理員可以管理訂閱
- 自動發送電子郵件通知:
- 訂閱啟動
- 取消訂閱
- 續訂提醒(在續訂前1天)
- 防止訂閱產品的數量更改
- 不需要額外的數據庫表格

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「EasySecure Subscriptions」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

EasySecure Subscriptions turns any WooCommerce product into a subscription. Set the billing interval on the product, connect your Stripe account with your test and live keys, and the plugin charges your customers automatically every cycle.
It is built to be safe with money. A renewal is only marked paid when Stripe confirms that the full amount was actually captured. Failed cards are retried and get a grace period before access is removed. Customers keep what they paid for when they cancel, and they can upgrade to a higher plan with a credit for the unused time.
No extra database tables, no external libraries, and no other subscription or Stripe plugin is required.
💳 Built-in Stripe gateway (new in 1.2.0)

Connect Stripe from the WordPress admin: WooCommerce → Settings → Payments → EasySecure Stripe.
Separate fields for test keys and live keys (publishable key, secret key and optional webhook signing secret), and a single “Test mode” checkbox to switch between them.
Keys are checked with Stripe when you save. The settings page shows the current mode, the connected Stripe account and the webhook URL. Wrong keys (for example a test key in a live field) are rejected with a clear message.
Card form powered by Stripe Elements, so card numbers never touch your server.
Works on the block checkout, the classic checkout and the “Pay now” page.
3D Secure (SCA) support at checkout.
Saved cards: for subscriptions the card is always saved for automatic renewals. For other products, customers can choose to save it.
Refunds directly from the WooCommerce order screen, full or partial.
Optional signed webhook that completes payments if a customer closes the browser during 3D Secure.
Test and live data are kept apart. Saved cards and Stripe customers belong to one mode and one Stripe account, so a test card is never charged in live mode.
At checkout the option shows as “Credit / debit card EasySecure Subscriptions“, with a test-mode hint while test mode is on.

Already using the WooCommerce Stripe Gateway plugin? Subscriptions bought with it keep renewing through it, so you can switch to the built-in gateway without breaking existing customers.
🔁 Renewals you can trust

Automatic renewals on a daily, weekly, monthly or yearly interval (for example every 3 months).
Optional subscription length: the subscription ends after a set number of periods.
Renewals are charged off-session with the customer’s saved card.
A renewal order is only marked paid when Stripe reports “succeeded” and the captured amount and currency match the order.
Each renewal attempt has its own idempotency key, and overlapping cron runs are locked, so a customer is never charged twice for one cycle.
Correct month handling: 31 January + 1 month = 28/29 February.

⚠️ Failed payments, retries and grace period

A declined renewal never moves the billing date forward.
The subscription becomes Past due. The customer keeps access for a 7-day grace period.
The card is retried automatically on day 1, 3 and 5.
The customer gets an email with a Pay now link to pay with another card. That card then becomes the one used for later renewals.
If the renewal is still unpaid when the grace period ends, the subscription is Suspended and access is removed. Paying the renewal reactivates it.
Cards that need 3D Secure during a renewal are not marked paid; the customer is asked to pay the renewal themselves.

⬆️ Plans, upgrades and one plan per customer

Give products a Plan Group and a Plan Level (for example Silver = 1, Gold = 2 in the group “membership”).
One plan per group per customer. Buying the same plan twice, or a lower plan of the same group, is blocked. Subscription checkout requires an account, so this cannot be bypassed with guest checkout.
Upgrades with proration: customers get an “Upgrade to Gold” button in My Account. At checkout the unused part of the current period is credited (shown as “Credit for unused time on Silver”). Once the upgrade is paid, the old plan stops billing and is marked Switched.
Downgrades: the customer cancels the higher plan, keeps it until the end of the paid period, and then buys the lower plan.

✋ Cancellation that respects the paid period

Customers cancel from My Account. Nothing is charged again, but access continues until the end of the period already paid (Pending cancel).
Until then the customer can Resume the subscription with one click.
Shop managers can choose Cancel at period end or Cancel now on the Subscriptions screen.

🔒 Restricting content to subscribers

Shortcode: [easysecure_restricted products="12,34"]Members only content[/easysecure_restricted]
PHP: easysecure_user_has_access( $user_id, $product_ids )
Access counts as active while the subscription is Active, Past due (grace period) or Pending cancel.

📧 Email notifications

Subscription activated
Renewal reminder, about one day before the next charge
Renewal payment failed, with a Pay now link
Subscription suspended
Cancellation confirmed, showing the date access ends
Subscription ended or expired

🛠 Admin

Subscriptions screen with status, next payment date, next retry and grace period end for every subscription.
Paginated list with cancel, resume and cancel-now actions.
Subscription statuses: Active, Past due, Pending cancel, Suspended, Cancelled, Expired, Switched.
Compatible with WooCommerce High-Performance Order Storage (HPOS).
Subscription products are locked to quantity 1.

External services
This plugin connects to Stripe to take card payments, process renewals and issue refunds. Stripe is operated by Stripe, Inc. Nothing is sent to Stripe until you enter your Stripe API keys and enable the EasySecure Stripe payment method.
Stripe API (api.stripe.com)
Used to verify your API keys, create Stripe customers, create and check payment intents, and create refunds.
Data sent: the order amount and currency, the order ID and order key, your site address, the customer’s WordPress user ID, name and email address, the Stripe customer ID and the saved payment method ID. Refund requests also send the refund amount and reason.
When: when you save the API keys, when a customer pays at checkout or on the “Pay now” page, when a customer returns from 3D Secure, when a renewal is charged, and when you refund an order.
Stripe.js (js.stripe.com)
Loaded on the checkout and “Pay now” pages to show the secure card field (Stripe Elements).
Data sent: the card details and the customer’s billing name, email, phone number and address are sent directly from the customer’s browser to Stripe. Card details never reach your server.
When: whenever a customer opens the checkout or “Pay now” page while EasySecure Stripe is enabled.
Stripe webhooks (optional)
If you add a webhook in your Stripe dashboard, Stripe sends payment status events to your site at /wc-api/easysecure_stripe_webhook/. The plugin does not send any data in this step.
Stripe Terms of Service: https://stripe.com/legal
Stripe Privacy Policy: https://stripe.com/privacy
Developers
Actions:

easysecure_subscription_activated, easysecure_subscription_reactivated
easysecure_subscription_renewed, easysecure_renewal_payment_failed
easysecure_subscription_past_due, easysecure_subscription_suspended
easysecure_subscription_cancellation_scheduled, easysecure_subscription_cancelled, easysecure_subscription_expired
easysecure_subscription_switched
easysecure_subscription_access_granted, easysecure_subscription_access_revoked
easysecure_subscription_status_updated

Filters:

easysecure_grace_period_days (default 7)
easysecure_renewal_retry_days (default array( 1, 2, 2 ), days after the previous attempt)
easysecure_process_renewal_payment: charge renewals for another gateway. Return status success only after the gateway confirmed the full amount.

Functions:

easysecure_user_has_access( $user_id, $product_ids = array() )
easysecure_get_user_subscriptions( $user_id, $statuses = null )

延伸相關外掛

文章
Filter
Mastodon