DOCS

Donation Form

FREE block. The main donor-facing payment form for a fundraising action.

Donation form example

Why use this

Every action page needs a way to accept donations. This block renders the complete donation flow: amount selection, donor information, payment method, and submission.

What it does

The form submits via AJAX to wp_ajax_get_fund_process_donation. It includes:

  • Preset amount buttons and an optional custom amount field
  • Donor name, phone, and email fields (configurable)
  • Anonymous donation toggle (optional)
  • Marketing opt-in checkbox (optional)
  • Payment method selection (PayPal in FREE; Mollie and Stripe added by PRO)
  • Recurring donation option (hidden until the GET_FUND_RECURRING_ENABLED constant is set to true; currently disabled)
  • Custom fields defined via the form builder
  • A totals breakdown before submission

Security: each submission requires a nonce (get_fund_donation_nonce), a honeypot field, and is rate-limited to 5 submissions per IP address per 15 minutes.

How to use it

  1. Add the Donation Form block to the action page template.
  2. Set your preset donation amounts in the One-Time Amounts field.
  3. Toggle donor fields on or off depending on what information you need to collect.
  4. Choose the number of columns for amount buttons and payment method icons.
  5. Adjust button and link colors to match your theme.
Donation form inspector

Settings and options

OptionTypeDefaultDescription
One-time amountsarray25, 50, 100, 250Preset amount buttons in euros
Recurring amountsarray10, 25, 50, 100Preset amounts for recurring (inactive until constant is enabled)
Default one-time amountnumber0Pre-selected amount; 0 = none
Show custom amountbooleantrueAllow donors to type any amount
Show recurringbooleanfalseShow recurring option (requires GET_FUND_RECURRING_ENABLED = true)
Show messagebooleantrueMessage field for the donor
Show first namebooleantrueFirst name field
Show middle namebooleanfalseMiddle name field
Show last namebooleantrueLast name field
Show phonebooleanfalsePhone number field
Show anonymous donationbooleanfalseCheckbox to donate anonymously
Show marketing opt-inbooleanfalseMarketing consent checkbox
Show totals breakdownbooleantrueItemised total before payment
Payment method columnsnumber2Columns in the payment method grid
Donation amount columnsnumber4Columns in the preset amounts grid
Button colorstringSubmit button background color
Button text colorstringSubmit button text color
Link colorstring#4a9d44Color for inline links
Payment method border widthnumber2Border on payment method options
Payment method border colorstring#dddDefault border color
Payment method selected borderstring#4a9d44Border color when selected

What you can and cannot do

  • Recurring donations are not available regardless of the Show recurring toggle. The feature is gated by the GET_FUND_RECURRING_ENABLED PHP constant, which is currently false.
  • Payment methods beyond PayPal require Fundations Pro (Mollie, Stripe).
  • Custom fields are configured via Settings > Fundations > Form Builder, not directly in the block.
  • The form is rate-limited server-side and cannot be disabled per block.

Troubleshooting

Form submits but nothing happens: Check the browser console for JavaScript errors. Confirm the nonce is being generated (the action page must load with WordPress running, not a cached static copy).

Custom amounts are not accepted: Ensure Show custom amount is enabled in the block settings.

Only PayPal shows as a payment method: Mollie and Stripe require an active Fundations Pro license and configuration in the PRO settings.

Recurring tab does not appear: The recurring feature is disabled at the code level and cannot be activated through the block editor.