Skip to content

Donation Form Reference

The donation form allows users to donate to your fundraisers. This reference explains all the attributes that can be added to the embed code to modify its style and behavior.

These are the parameter combinations required to embed donation forms from the various types of fundraisers you can create via Pledge. Identify your fundraiser type and use only one of the following parameter combinations.

Fundraisers created via the Impact Hub.

type: string

The widget ID for your fundraiser

<div class="plg-donate" data-widget-id="[WIDGET ID]"></div>

Fundraisers created via the fundraiser API.

type: string

Your partner key

type: string

The fundraiser ID

<div class="plg-donate"
data-partner-key="[PARTNER KEY]"
data-item-id="[FUNDRAISER ID]"></div>

For our partners that need a programmatic way to embed a donation form that supports any organization on the fly, we provide a way to embed a donation form without creating a fundraiser first.

type: string

Your partner key

type: string

Nonprofit organization EIN (aka NGO ID)

<div class="plg-donate"
data-partner-key="[PARTNER KEY]"
data-ein="[EIN]"></div>

type: BCP 47 language tag (e.g. 'en-US'; see HTML lang global attribute on MDN)

Language in which to render the donation form

<div class="plg-donate"
data-widget-id="..."
lang="es-MX"></div>

type: number

Sets the default donation amount

<div class="plg-donate"
data-widget-id="..."
data-amount="50"></div>

type: string

Pre-fills the donor’s first name

<div class="plg-donate"
data-widget-id="..."
data-first-name="Sam"></div>

type: string

Pre-fills the donor’s last name

<div class="plg-donate"
data-widget-id="..."
data-last-name="Williams"></div>

type: string

Pre-fill the donor’s email address

<div class="plg-donate"
data-widget-id="..."
data-email="sam@williams.com"></div>

type: currency code string (e.g. 'usd')

Sets the default currency

<div class="plg-donate"
data-widget-id="..."
data-currency="cad"></div>

type: hex color string

Sets the main color of the donation form

<div class="plg-donate"
data-widget-id="..."
data-style-brand-color="#fc2352"></div>

type: boolean

Hides the button on the post-donation screen to share the fundraiser on social media

<div class="plg-donate"
data-widget-id="..."
data-style-hide-social="true"></div>

type: string

Uses a template name to load the appropriate configuration

<div class="plg-donate"
data-widget-id="..."
data-template="[TEMPLATE]"></div>