[WordPress] 外掛分享: Donation Router for GiveWP & PayPal – Route Donations by Donor Country

首頁外掛目錄 › Donation Router for GiveWP & PayPal – Route Donations by Donor Country
WordPress 外掛 Donation Router for GiveWP & PayPal – Route Donations by Donor Country 的封面圖片
全新外掛
安裝啟用
尚無評分
29 天前
最後更新
問題解決
WordPress 6.4+ PHP 8.1+ v1.2.0 上架:2026-05-18

內容簡介

Donation Router for GiveWP & PayPal 外掛擴展了 GiveWP 的 PayPal 捐款閘道,允許單一 WordPress 安裝根據捐款者的國家自動將捐款路由至正確的 PayPal 商業帳戶,適合擁有多個慈善實體的組織使用。

【主要功能】
• 多帳戶管理面板:管理多個 PayPal 商業帳戶
• 國家路由規則:為每個國家定義捐款處理帳戶
• 國家選擇彈窗:讓捐款者選擇國家
• 實時憑證路由:在支付時自動替換 PayPal 憑證
• 每帳戶 webhook 處理:支持各帳戶的 webhook

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Donation Router for GiveWP & PayPal – Route Donations by Donor Country」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Donation Router for GiveWP & PayPal extends the GiveWP PayPal Donations gateway so that a single WordPress installation can accept donations through several PayPal Business accounts, automatically routing each transaction to the correct account based on the donor’s declared country.
This plugin is an independent, third-party extension. It is not affiliated with, endorsed by, or sponsored by GiveWP (StellarWP) or PayPal. The names “GiveWP” and “PayPal” appear here solely to describe compatibility with those products.
You need at least two PayPal Business accounts and one GiveWP donation form per country for this plugin to do anything. With a single PayPal account there is nothing to route, and GiveWP’s own PayPal Donations setup already covers you.
This plugin is designed for organisations that operate two or more legally distinct charity entities — for example a US 501(c)(3) and a Canadian CRA-registered charity — that share a single donation website but must process payments through separate PayPal accounts and issue separate tax receipts.
Key features:

Multi-account admin panel — Add and manage any number of PayPal Business accounts under Donation Forms → PayPal Accounts. Each account stores legal entity details (name, tax ID, address, country) alongside AES-256-GCM encrypted API credentials.
Country routing rules — Define which PayPal account and GiveWP form handles donations from each country. One active rule per country, fully configurable from the admin.
Country selector popup — A donor-facing modal popup (shortcode [ador_country_selector]) asks donors to identify their country before proceeding to checkout. Selection is stored in sessionStorage to avoid repeated prompts.
Runtime credential routing — The plugin intercepts GiveWP’s IoC container at payment time, substituting the correct PayPal credentials transparently. No GiveWP core files are modified.
Per-account webhook handling — Each PayPal account receives its own webhook endpoint (/wp-json/ador/v1/webhook/{account_id}) with independent HMAC signature verification.
Per-entity email tags — Seven GiveWP email template tags populate receipt emails with the correct legal entity name, address, tax ID, tax-deductibility statement, and a unique per-entity receipt number.
PDF receipts — Optional on-demand PDF receipt download on the GiveWP success page, generated by dompdf.
Connect with PayPal — Onboard any number of PayPal Business accounts through GiveWP’s own approved-partner flow. No separate PayPal app to configure, and no pasting client secrets by hand.
Import GiveWP’s existing account — One click adopts the PayPal account GiveWP is already connected to, reusing its stored credentials, so it becomes routable and receipt-customisable without a second OAuth.
Live and sandbox side by side — Every account carries an environment. Routing only applies an account whose environment matches GiveWP’s current mode, so a sandbox account can never take a live donation.
Setup readiness panel — The Accounts screen reports whether donations are actually routing: missing rules, accounts in the wrong environment, rules pointing at deactivated accounts or unpublished forms, missing webhooks, and donations that bypassed routing. It collapses to a single line once nothing needs attention.
Per-account webhook registration — Register each account’s webhook and its event subscriptions at PayPal from the admin, using that account’s own credentials.
Security-first design — AES-256-GCM credential storage, nonce protection, capability checks, webhook signature verification, and $wpdb->prepare() throughout.

How it works

A donor lands on your donation page and the country selector asks which country they are giving from. Their answer is remembered for the rest of the visit.
The plugin looks up the routing rule for that country to find the donation form and the PayPal Business account that should receive the gift.
When the donor pays, the correct account’s credentials are substituted into GiveWP’s PayPal gateway for that request only. PayPal charges the right legal entity — nothing is transferred between accounts afterwards.
The donation records which account processed it and which country the donor selected.
PayPal notifies the site on that account’s own webhook endpoint, and the capture, denial or refund is recorded against the donation.
The receipt email renders that entity’s registered name, address, tax ID, tax-deductibility statement and its own receipt number.

If a country has no routing rule, nothing breaks: the donation proceeds through GiveWP’s default PayPal account, and the readiness panel reports that it happened.
More from us
Other free plugins by the same author, all on WordPress.org.
For any site

Swift Menu Duplicator – Duplicate menus in one click, snapshot revisions, export and import, WP-CLI and REST.
Author Profile Blocks – Author and team profiles as Gutenberg blocks — grid, carousel, list and single.

For the WordPress AI Client

AI Provider for OpenCode Zen – One API key, 57 models including GPT-5, Claude and Gemini 3, for the WordPress AI Client.
AI Provider for MiniMax – MiniMax M2 and M3 models for text generation, for the WordPress AI Client.

External services
This plugin sends data to PayPal’s REST API to authenticate with PayPal Business accounts and to verify the HMAC-SHA256 signatures of inbound webhook events.
PayPal REST API (https://api-m.paypal.com, https://api-m.sandbox.paypal.com, https://api.paypal.com, https://api.sandbox.paypal.com)

What is sent: PayPal Client ID and Client Secret (decrypted in memory at request time, never stored in plaintext) are exchanged for OAuth 2.0 bearer tokens during donation checkout. Webhook event payloads are forwarded to PayPal’s /v1/notifications/verify-webhook-signature endpoint for signature verification.
When it is sent: Only when a donation is being processed through a PayPal Business account configured in this plugin, or when PayPal sends a webhook event to this site.
Service terms: PayPal User Agreement | PayPal Privacy Statement

延伸相關外掛

文章
Filter
Mastodon