← Blog
WordPressContact Form 7PayPal

Contact Form 7 PayPal Donations: Set Up a Donation Form

Build a Contact Form 7 PayPal donation form with variable amounts, per-form PayPal accounts, local transaction records and a sandbox test you can trust.

The donate button on most small charity sites is a hosted PayPal button with three fixed amounts. Money arrives, so nobody touches it. What it never tells you is which appeal the gift came from, and it will not take £73 from a supporter who wanted to give exactly £73. So every January the treasurer rebuilds the annual figure from a CSV export, by hand.

A Contact Form 7 PayPal donation form attacks the same job from the other end: the form is one you designed, the amount comes from fields you already know how to build, and the transaction is written into your own WordPress database as well as PayPal’s. Setup is quick. What is hard to change later is how the amount is captured, which account it lands in, and whether you tested before real money moved.

We build and sell the PayPal donation plugin for Contact Form 7 discussed below, so weigh the recommendations accordingly. The reasoning about amount fields, return URLs and sandbox testing holds whichever tool you use.

What a Contact Form 7 PayPal donation form changes

Contact Form 7 already runs on a very large share of WordPress sites, so the markup, the validation, the mail routing and your spam protection are decisions you made long ago. Adding donations on top is a far smaller change than adopting a donation platform, and it inherits your theme’s styling instead of importing someone else’s.

Our PayPal donation plugin for Contact Form 7 turns every Contact Form 7 form on the site into a working donation form and accepts 25 currencies. It extends CF7 rather than replacing it, so the free Contact Form 7 plugin must be installed and active first - it is in the WordPress plugin repository and installs from the wp-admin Plugins menu in about a minute.

Three practical differences from a hosted PayPal button:

  • The amount is a form field, not a value baked into a button you generated once.
  • Each form can take its own PayPal account, so one site runs several causes without pooling money.
  • Every transaction is stored locally in wp-admin, so reporting does not start at PayPal.

Where a dedicated donation platform still wins

Be honest about the shape of your programme first. This model captures a contribution on a form, hands it to PayPal and records the result. If you run on recurring monthly giving with donor accounts, pledge tracking and grant reporting, a form is one component of a system you would still have to build. And if a meaningful share of supporters will not complete a PayPal checkout, that is a constraint to measure on a real campaign, not argue about in a meeting.

Driving a variable donation amount from fields you already build

This is what separates a donation form from a payment button. Every field type in Contact Form 7 can set the donation value - drop-down menus, text boxes, hidden fields and radio buttons - so the capture method is a design decision, not a plugin limitation.

Field typeBest forWatch for
Radio buttonsthree or four suggested amounts, all visible at oncethe top amount anchors the decision, so ordering matters
Drop-down menulonger lists, or a fund picked alongside the amountoptions hide behind a click and the default becomes the anchor
Text boxthe “other amount” escape hatchstrip currency symbols and separators, set a minimum
Hidden fielda fixed amount on a campaign landing pageclient-side, so convenience and never enforcement

Suggested amounts beat an empty box. A blank field asks the supporter to invent a number, and inventing a number is work. Three radio buttons with a concrete anchor on each - what the amount actually buys - do most of the persuading. Put the “other amount” box underneath, because whoever wants to beat your top tier is exactly who you must not cap.

Set a floor. PayPal takes a percentage plus a fixed fee per transaction, so a £2 donation loses a far larger share of itself than a £50 one. A minimum of £3 to £5 on the free-text field is arithmetic, not greed. Enforce it in the field’s validation.

Hidden fields are how you get per-campaign attribution

Because the plugin works across every Contact Form 7 form you publish, the cheap way to know which appeal produced which donation is to duplicate the form per appeal and let a hidden field carry the campaign name. The winter appeal page gets its own form with a hidden campaign value and, if you want, a hidden amount. No extra tracking layer, no UTM plumbing on the payment side.

On a WooCommerce site the plugin goes further and accepts dynamic values from the frontend - item description, amount and quantity - so the contribution reflects what the visitor selected rather than a figure fixed in advance.

Multiple PayPal accounts on one website, one per cause

Assigning a separate PayPal account to each form sounds administrative and turns out to be structural. Once several causes share one website, they usually should not share one balance:

  • Restricted funds. Money raised for a stated purpose is far easier to defend in an audit when it never touched the general account.
  • Branches, chapters and parent groups. Each committee holds its own account and treasurer, but everybody links to the same site.
  • Partner campaigns. You host the page, someone else’s cause takes the money. Splitting a shared balance afterwards is an invoice nobody wants to raise.

The alternative is one account plus an allocation spreadsheet, and allocation spreadsheets are where reconciliation errors live. One caution: name each form after its appeal rather than “Contact form 3”, and keep a note mapping form to account outside WordPress. Whoever does the year-end reconciliation is rarely whoever built the forms.

Where the donor lands: success and cancellation URLs

A payment flow gets judged on the ten seconds after the money leaves. The Success Return URL and the Cancellation URL are both editable, and both deserve a real page built in the WordPress backend.

The thank-you page should confirm the amount, say when a receipt arrives, and make exactly one further ask - the newsletter, sharing the appeal, nothing more. Drop the [paypal-details] shortcode onto it and the page displays that transaction’s core data: id, status, amount and currency. A supporter who can see their own reference number does not email three days later asking whether it went through.

The cancellation page should not be your homepage. Someone who abandoned at PayPal either changed their mind or hit a problem. A page stating plainly that nothing was charged, plus one alternative such as bank transfer details, recovers a fraction of them. A silent redirect recovers none.

If you raise money internationally, the plugin carries multiple language support, so the donor-facing strings need not sit in English on a page that otherwise is not.

Keep the transaction record on your own server

Every donation is stored locally in wp-admin with detailed information about the transaction, and you can review or delete any of them there. Donations can be sorted by specific months, which is the shape most treasurers need - a period total, not a lifetime one.

This matters more than it sounds:

  1. Access. PayPal login usually belongs to one person. A local record is visible to anyone with the right WordPress role.
  2. Continuity. If a PayPal account is ever limited or closed, your history of who gave what is still on your server.
  3. Speed. Answering “did my March gift arrive?” becomes a sort by month, not an export and a search.

Two caveats. The local table is a copy, not the source of truth - PayPal holds the money, so reconcile monthly, and note that deleting a row removes your record, not the payment. And because the records live in your database, the archive is only as good as your database backups. If your host backs up files but not MySQL, fix that before the first donation.

Test the whole flow in PayPal Sandbox before you switch to Live

You can configure SandBox testing credentials and switch to Live ones when ready, and a debug mode option helps troubleshoot gateway or server issues. Use both. This is the one form where a silent failure costs money and goodwill at once.

Run this list in sandbox, in a private browser window, before the credentials change:

  • Each suggested amount in turn, checking the value reaching PayPal matches the label the donor clicked.
  • The “other amount” field with awkward input: 50.00, 50, £50, 1,000, 0, and something below your minimum.
  • A deliberate cancellation halfway through, landing on your cancellation page.
  • A completed payment landing on the thank-you page with [paypal-details] rendering the right amount and currency.
  • The local record appearing in wp-admin with the right figure and currency.
  • The second form paying into the second PayPal account, if you run several causes.

Then switch to Live and do one more thing: make a small real donation from a different personal PayPal account, confirm it landed in the intended business account, and refund it. Sandbox proves the wiring. A live transaction proves the credentials, and those are two different failures.

The launch sequence

  1. Install and activate the free Contact Form 7 plugin from wp-admin Plugins, if it is not already there.
  2. Build the form: suggested amounts as radio buttons, an “other amount” box with a validated minimum, a hidden campaign field.
  3. Create the thank-you and cancellation pages, and place [paypal-details] on the thank-you page.
  4. Point the Success Return URL and the Cancellation URL at them.
  5. Assign this form’s PayPal account, and write down which form maps to which account.
  6. Enter SandBox credentials and work through the test list above, debug mode on if anything looks wrong.
  7. Switch to Live credentials, make one real donation from a different account, verify it, refund it.
  8. Confirm your database is in the host’s backup schedule.
  9. Duplicate the form for the next appeal, change the hidden campaign value, repeat from step 5.

If you only do one of these before going live, do step 7. Everything else fails loudly. A wrong Live credential fails quietly, by sending donations to an account nobody is watching.