Skip to main content

A PloneFormGen-based donation form that does checkout via PloneGetPaid.

Project description

Introduction

This package streamlines the process of creating a donation form within a Plone site that can process payments via one of the payment processors supported by PloneGetPaid.

On its own, PloneGetPaid provides a useful basis for processing electronic payments within Plone, including support for a number of payment processors. However, PloneGetPaid is optimized for the use case of purchasing products, and makes some assumptions that are suboptimal for collecting donations:

  • It assumes that any item purchased is represented by a content item within the site, which is not the case for arbitrary donations.

  • It provides no user interface for selecting among predefined donation levels -or- entering an arbitrary donation amount.

  • Its checkout process requires several steps, whereas making a donation should be as streamlined as possible.

pfg.donationform solves these problems by creating a PloneFormGen-based donation form with a custom “donation field” that provides an acceptable UI for configuring a donation amount and recurring donation. When the form is submitted, it can either process the donation immediately based on contact and billing fields included in the form, or can redirect to the standard GetPaid checkout wizard.

The donation field may also be used in other PloneFormGen forms.

Dependencies

pfg.donationform works on both Plone 3 and Plone 4. Recent versions of PloneFormGen and PloneGetPaid are required.

Installation

Add GetPaid to your buildout, using the instructions at http://code.google.com/p/getpaid/wiki/InstallingGetPaid to make sure you get the correct package versions.

Add pfg.donationform to your buildout.

Start Zope and install “Donation Form” to your Plone site via the Add/Remove Products panel in Site Setup.

Make sure you have configured your Plone site’s mailhost settings.

Usage

Begin adding a donation form by selecting “Donation Form” from Plone’s Add menu. Fill out the fields and click “Add” to finish adding the form.

By default GetPaid uses a dummy payment processor that “accepts” payment without actually doing anything. You will need to configure GetPaid via its control panel in Site Setup.

Customization

Because the generated form is a PloneFormGen form, you may edit or add fields via the normal PloneFormGen user interface. If you add a field and want it to be included in the e-mail that is sent when a donation is made, you must also edit the mailer adapter and add it to the list of included fields. (All fields are not included automatically, in order to avoid sending sensitive credit card information via e-mail.)

If you let the Donation Form creation process add contact and billing fields to the form, make sure that you do not remove them or change their IDs – the GetPaid adapter expects to find them.

Credits

pfg.donationform was created for Groundwire by David Glick. Thanks also to Fulvio Casali.

Change history

Changelog

1.0.1 (2010-08-05)

  • Remove the ‘required’ setting for the donation field for now, since it doesn’t work properly and isn’t trivial to fix. Also the ‘hidden’ and ‘fgDefault’ settings, which don’t make sense for this field. [davisagli]

  • Fix bugs in highlighting the currently selected level. [davisagli]

  • Handle predefined donation levels with no label. [davisagli]

  • Fix the wording for the case where no predefined donation levels are specified. [davisagli]

1.0 (2010-08-03)

  • Mark the cart as an IDonationCart. [davisagli]

  • Fire a DonationCreatedEvent on the cart after a donation is added. [davisagli]

1.0b1 (2010-05-19)

  • Initial release. [davisagli]

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pfg.donationform-1.0.1.zip (40.4 kB view details)

Uploaded Source

File details

Details for the file pfg.donationform-1.0.1.zip.

File metadata

  • Download URL: pfg.donationform-1.0.1.zip
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pfg.donationform-1.0.1.zip
Algorithm Hash digest
SHA256 48e38f6009a12b8077eab45cf7584fd0bc9aa0e9af6985012a8656227f9177ad
MD5 02b6eb27e7bac7d030a10e23bd902c8d
BLAKE2b-256 4a7b52e81421a6c230840ec76782457a5ce1e2af40356a927d8533576ba6ef8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page