Donation Router for GiveWP & PayPal – Route Donations by Donor Country
Route GiveWP donations to multiple PayPal Business accounts by donor country. Multi-entity charities, automatic credential switching.
Use with caution
Donation Router for GiveWP & Pa… works, but test it on a staging site before relying on it in 2026. Was last updated 4 months ago, and scores 49/100 on our health check.
- Small user base (<10 active installs)
- Very few reviews so far
- Needs PHP 8.1 or newer
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Donation Router for GiveWP… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| charity | >100 |
| donation routing | #12 |
| donations | >100 |
| givewp | #79 |
| paypal | >100 |
About Donation Router for GiveWP & PayPal
From the official readme · v1.2.0Description
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-signatureendpoint 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
Installation
Before you start
This plugin extends GiveWP and does nothing on its own. You will need:
- GiveWP, installed and active, with its PayPal Donations gateway enabled under GiveWP → Settings → Payment Gateways. Without that gateway there is no PayPal checkout to route.
- Two or more PayPal Business accounts. With a single account there is nothing to route — GiveWP’s own PayPal Donations setup is all you need.
- A GiveWP donation form for each country you want to route. A routing rule points at a specific form, so the forms have to exist before you can create the rules.
AUTH_KEYandSECURE_AUTH_SALTset to strong, unique values inwp-config.php. Credentials are encrypted with a key derived from them; a standard WordPress install already has these.
Installing
From Plugins → Add New, search for “Donation Router for GiveWP”, then install and activate. Everything the plugin needs is bundled — there is no Composer or build step.
To install from source instead, clone the repository into wp-content/plugins/, then run composer install --no-dev --optimize-autoloader and yarn install --immutable && yarn build. Only the source checkout needs this; the released package does not.
Setting it up
- Go to Donation Forms → PayPal Accounts. The readiness panel at the top of this screen tracks everything below and tells you what is still outstanding.
- Add your first PayPal Business account — Connect with PayPal (recommended: uses GiveWP’s approved partner, so there is no PayPal app to create and no client secret to paste), Import from GiveWP if GiveWP is already connected to one, or by entering a Client ID and Secret from your own PayPal Developer app.
- Fill in that account’s legal entity details — registered name, tax ID, and address. These are what appear on its receipts, and they are the reason to run more than one account.
- Repeat for each entity. Each account carries an environment (live or sandbox); routing only uses an account whose environment matches GiveWP’s current mode.
- Under the Country Routing tab, add a rule per country: the donor’s country, the GiveWP form they should see, and the account that should receive the money. One active rule per country.
- Copy the
[ador_country_selector]shortcode — shown on the Country Routing tab with a copy button — onto your donation landing page. This is what asks donors which country they are giving from. - Register each account’s webhook, either with the Register webhook action on the Accounts list or by pasting the URL from Webhook Setup into your PayPal Developer app. Without it, captures and refunds are never recorded against the donation.
- Under the Settings tab, review the tax-deductibility statement for each account and tick the legal-review acknowledgement once a qualified adviser has approved them.
When the readiness panel collapses to a single “Ready” line, the setup is complete. Make one small live donation and confirm it appears under the account you expected.
For detailed configuration instructions, see operations.md in the GitHub repository.
Changelog
Fixes PDF receipt downloads, which previously worked only for administrators — every other donor was refused. Also renames the donor country selector's CSS classes from givewp-country-selector-* to ador-country-selector-*: if your theme or custom CSS targets the old names, update them before upgrading.
1.2.0 – 2026-08-17
Added
- Setup readiness panel on the PayPal Accounts screen — ten checks computed from the site’s real state, reporting whether donations are actually being routed and linking to the screen that fixes each problem. It collapses to a single line once nothing is failing.
- Detection for three failures the admin could not previously show: an account whose environment does not match GiveWP’s test-mode setting (skipped by routing, yet still badged Active), a routing rule pointing at an account that was deactivated afterwards, and a rule whose donation form was deleted or unpublished. In each case donations silently reach GiveWP’s default PayPal account.
- A record of donations that bypassed routing, shown in the panel with the form, the reason and when it last happened. Previously this appeared only in the PHP error log.
- Contextual Help tabs on the plugin screen covering setup order, country routing, and the receipt email tags.
- The donor selector shortcode is now shown on the Country Routing tab with a copy button — it previously appeared nowhere in the admin.
Changed
- The legal-review acknowledgement no longer states that donations are blocked until it is ticked. Nothing in the payment or receipt path enforced it, so the notice now describes what the plugin actually does.
- New plugin icon, banners and social card, rebuilt on the WordPress admin colour palette so the listing matches the plugin’s own interface.
- Listing screenshots now show the plugin’s real interface in a branded frame.
- The donor country selector’s CSS classes are renamed from
givewp-country-selector-*toador-country-selector-*. If your theme or custom CSS targets the old names, update them.
Fixed
- PDF receipt downloads only worked for administrators. The permission check read a GiveWP meta key that GiveWP 4.x no longer writes, so every donor was refused, and the download link was missing the email argument the check authorises a guest donor against.
- The Accounts screen no longer fails with a fatal error when stored credentials cannot be decrypted — for example after
AUTH_KEYorSECURE_AUTH_SALTis changed. It now explains what happened and what to do. - The bypassed-routing notice names the form that failed most recently rather than the first one recorded.
- A healthy readiness panel no longer turns red when expanded.
- PayPal environment names are now translatable.
1.1.0 – 2026-07-06
Added
- Per-account live/sandbox environment — manage the same PayPal merchant independently in live and sandbox; routing only applies an account whose mode matches the site’s current GiveWP mode.
- Import GiveWP’s already-connected PayPal account in one click (reuses stored credentials, no second OAuth).
- Re-sync an imported account’s credentials from GiveWP (same-merchant, same-mode guarded).
- Re-activate a deactivated account directly from the Accounts list.
- Delete a PayPal account from the Accounts list (confirmation required; deregisters the account’s PayPal webhook first).
- GiveWP version compatibility guard — refuses below GiveWP 3.0 and warns on untested GiveWP majors (
ador_block_on_untested_givewpfilter to fail closed).
Changed
- Accounts list gains a Mode column (live/sandbox badge).
- The Import button is always shown on the Accounts list for discoverability — disabled with an inline reason when there is nothing to import (GiveWP not connected, or the account is already imported).
- Flat, minimal admin restyle built on the WordPress core colour palette — status/mode badges, buttons, modals, notices, and the receipt templates. Primary calls to action now use WordPress’s native primary-button style.
- Schema 1.1.0: adds the
modecolumn and a compositeUNIQUE(merchant_id, mode)constraint. - Schema now migrates on plugin update, not only on activation.
Fixed
- List-table bulk actions now reach their handlers. The bulk Apply collided with
WP_List_Table‘s own action field and dispatched to no handler, dying with an empty error page; the routing field is now printed after the table so it wins. - Refunds to routed accounts no longer fail silently — the PayPal access token is re-minted at refund time instead of reusing the stale connect-time token, and a refund whose account mode does not match the site mode is blocked with an actionable admin error.
- Inbound webhooks for a genuinely unknown account return 404, while a real processing error now logs and returns 500 instead of being masked as not-found.
- Cached PayPal access tokens are encrypted at rest and re-minted on decrypt failure.
- Credential routing no longer fatals against GiveWP’s PayPal Commerce contract (overrider parameter-type compatibility).
- Per-account credentials no longer leak to
wp_optionswhen GiveWP refreshes an access token. - Inbound PayPal webhooks read the WP-canonicalised transmission headers, fixing signature verification and dropped events.
Removed
- The unused
ador_paypal_modeoption.
1.0.0 – 2026-05-07
Added
- Multi-account admin panel (Donation Forms → PayPal Accounts) with Accounts, Country Routing, and Settings tabs.
- Account add/edit form with AES-256-GCM encrypted credential storage.
- Country routing rules with add/edit/bulk-deactivate actions.
- Custom database tables
{prefix}ador_accountsand{prefix}ador_country_routingwith schema versioning. PayPal_Credential_Routerintercepting GiveWP’s IoC container before every PayPal AJAX payment request to substitute per-account credentials.- IoC container rebinding for both
MerchantDetail::classandMerchantDetails::classcovering all GiveWP PayPal credential resolution paths. - Refund routing with inactive-account guard.
- Per-account REST webhook endpoint
POST /wp-json/ador/v1/webhook/{account_id}with HMAC-SHA256 signature verification and idempotency checking. - Country selector popup shortcode
[ador_country_selector]with sessionStorage persistence. - Geolocation hint (non-binding IP-based country pre-selection).
- Seven GiveWP email template tags for per-entity receipt details.
- Per-entity sequential receipt numbers allocated atomically via
FOR UPDATElock. - Default tax-deductibility statement templates for US and Canada.
- PDF receipt generation via dompdf behind
ador_pdf_receipts_enabledoption flag. - Action hooks
ador_credentials_routedandador_webhook_processed. - PHPStan level 8, WPCS 3.x, PHPUnit 9.6 with Brain\Monkey test suite.
Security
- AES-256-GCM encryption for all stored PayPal credentials with HKDF-SHA256 key derivation.
- PayPal HMAC-SHA256 webhook signature verification on all inbound webhook events.
- WordPress nonce protection on all admin form submissions and AJAX endpoints.
current_user_can( 'manage_give_settings' )capability checks on all admin-only actions.$wpdb->prepare()for all parameterised database queries.
Screenshots
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Donation Router for GiveWP &… alternatives
All charity plugins →FAQ
Donation Router for GiveWP & PayPal: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Donation Router for GiveWP & Pa… free?
Yes. Donation Router for GiveWP & Pa… is free to download and use from the official WordPress.org plugin directory.
Is Donation Router for GiveWP & Pa… safe to use in 2026?
Donation Router for GiveWP & Pa… works, but test it on a staging site before relying on it in 2026. Was last updated 4 months ago, and scores 49/100 on our health check.
How many websites use Donation Router for GiveWP & Pa…?
Donation Router for GiveWP & Pa… is active on <10 WordPress websites and has been downloaded 582 times since it launched in May 2026. It was downloaded 101 times in the last 30 days.
Does Donation Router for GiveWP & Pa… work with WordPress 7.1?
Donation Router for GiveWP & Pa… is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Donation Router for GiveWP & Pa… need?
Donation Router for GiveWP & Pa… requires PHP 8.1 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Donation Router for GiveWP & Pa… last updated?
The latest version, 1.2.0, was released on August 17, 2026 (4 months ago).
Who makes Donation Router for GiveWP & Pa…?
Donation Router for GiveWP & Pa… is developed and maintained by Al Amin Ahamed.
What are the best alternatives to Donation Router for GiveWP & Pa…?
The most popular alternatives to Donation Router for GiveWP & Pa… are Accept Donations with PayPa… (10K+ installs), Donation Platform for WooCo… (6K+ installs) and Better Payment (5K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
