This extension adds a checkbox to CiviCRM Contribution and Event forms to enforce the affirmation of non-foreign donor status for contributors. This is required to satisfy recent changes to the Commonwealth Electoral Act (1918) regarding eligibility of donors to political parties and certain third parties in Australia.
The extension is licensed under AGPL-3.0.
- PHP v5.4+
- CiviCRM 4.7+
This extension has not yet been published for installation via the web UI.
Sysadmins and developers may download the .zip
file for this extension and
install it with the command-line tool cv.
cd <extension-dir>
cv dl au.org.greens.foreigndonors@https://github.com/australiangreens/au.org.greens.foreigndonors/archive/master.zip
Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.
git clone https://github.com/australiangreens/au.org.greens.foreigndonors.git
cv en foreigndonors
The extension adds checkboxes to the settings forms for contributions and events. When ticked, the public-facing forms will include a mandatory checkbox. Contributions and event registrations cannot be made until unless this checkbox is ticked.
Every contribution created on a form including this checkbox will include a custom field specifying that non-foreign donor status was affirmed by the contributor.
- Public form submissions failing due to unsuccessful check of ticked checkbox
- Can't determine if contribution came from contribution page or event registration page in civicrm_post hook function
- No test cases
- No try/catch statements to safeguard against unexpected error