[WordPress] 外掛分享: Customer Portal for Stripe

首頁外掛目錄 › Customer Portal for Stripe
30+
安裝啟用
★★★★★
5/5 分(2 則評價)
1208 天前
最後更新
問題解決
WordPress 5.7.2+ PHP 7.4+ v4.1.6 上架:2019-01-28

內容簡介

Stripe 客戶入口為使用「shortcodes」提供了以下功能,允許當前登錄的用戶:
管理其 Stripe 訂閱、查看其發票並管理其信用卡:

[cpfs_list_subscriptions allow-cancel="true"]
最多列出 10 個 Stripe 訂閱。 allow-cancel 的預設值為 false。
若要允許用戶取消其訂閱,請設置 allow-cancel="true"。

[cpfs_list_invoices]
最多列出 10 張 Stripe 發票。

[cpfs_list_cards]
最多列出 10 張存儲在 Stripe 上的信用卡。

[cpfs_add_card]
允許用戶添加新信用卡。新添加的信用卡將設置為默認。

注意事項:

當任何包含cpfs_*簡碼的頁面首次訪問時,將使用用戶的電子郵件地址在 Stripe 中查找當前登錄的用戶。如果未找到匹配的客戶,則將創建一個新的客戶。

如果需要,管理員可以通過編輯 WP Admin 中受影響的用戶檔案並更新 Stripe 客戶 ID 欄位,手動將 Stripe 客戶 ID 與用戶關聯。

如果管理員在 WP Admin 中更新任何用戶的電子郵件地址,則 Stripe 客戶電子郵件地址也將更新(如果客戶不存在,則創建一個客戶)。

如果用戶在 WordPress 中更新其電子郵件地址,則其電子郵件地址將不會在 Stripe 中更新。

為避免過多的 API 請求,Stripe 的響應會被緩存 15 分鐘。

外掛標籤

開發者團隊

⬇ 下載最新版 (v4.1.6) 或搜尋安裝

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

原文外掛簡介

Customer Portal for Stripe provides shortcodes which allows the currently signed-in user to
manage their Stripe subscriptions, see their invoices & manage their cards:

[cpfs_list_subscriptions allow-cancel="true"]
Lists up to 10 Stripe subscriptions. The default value forallow-cancel is false.
To allow a user to cancel their subscriptions, set allow-cancel="true".

[cpfs_list_invoices]
Lists up to 10 Stripe invoices.

[cpfs_list_cards]
Lists up to 10 credit cards stored at Stripe.

[cpfs_add_card]
Allows a user to add a new card. The newly added card will be set as default.

Notes:

On first visit of any page containing a cpfs_* shortcode, the currently signed-in user will be looked up
in Stripe using the user’s email address. If not matching customer is found, a customer will be created.

If needed, an administrator can manually link a Stripe customer ID to a user by editing the affected user profile
in WP Admin and updating the Stripe Customer ID field.

If an administrator updates the email address of any user in WP Admin, the Stripe customer email will be updated as
well (or created if the customer doesn’t exist).

If a user updates their email address in WordPress, their email will not be updated in Stripe.

Responses from Stripe are being cached for 15 minutes to avoid excessive API calls.

延伸相關外掛

文章
Filter
Mastodon