Skip to content

Widgets Overview

Pledge widgets are ready-made pieces of giving UI that you add to your own pages. Each one takes a single <div> plus our embed script, which loads it in an <iframe> served by Pledge. Pledge handles the nonprofit data and the payments, so you can add search, donations, and progress tracking to your site without writing any server code.

There are four widgets:

WidgetWhat your visitors do with itWhat you need to embed it
Donation formDonate to a fundraiser or a nonprofitA widget ID, or your partner key plus a fundraiser ID or EIN
Organization searchFind and choose a nonprofitYour partner key
Fundraiser trackerSee how close a fundraiser is to its goalYour partner key and a fundraiser ID
Impact calculatorSee the total raised or impact achievedAn impact calculator ID

A complete checkout for giving. Donors choose an amount, give once or monthly, and pay without leaving your page. You choose which of 12 payment methods they see: Apple Pay, Google Pay, card, PayPal, Venmo, bank, crypto, stock, donor-advised funds, wire, check, and a pledge to pay later. When a donation completes, the form sends your page a message, so you can thank the donor or update your own records.

The form comes in two layouts. Each fundraiser uses one of them: your account’s default, or the one you choose with donation_flow when you create the fundraiser through the API.

A guided donation form for Worthy of Love, on its first step: Give once and Give monthly options, preset amounts from $25 to $500, and a Continue button
Guided: one step at a time
An express donation form for Worthy of Love, with the amount, Once and Monthly options, a tip, payment methods, and the donor’s details on one page
Express: everything on one page

Embed the form in your page, or open it in a dialog from a button you style yourself. Use it to add a donate section to a campaign or nonprofit page, to collect donations for a fundraiser you created, or to let users donate to any nonprofit by its EIN without creating a fundraiser first.

Try it in the sandbox

A typeahead search over Pledge’s nonprofit database. When a user picks a nonprofit, the widget sends your page its ID, and your code decides what happens next: often creating a fundraiser for that nonprofit through the API. You can feature a suggested nonprofit, or let users choose several.

Live demo Live data from pledge.to

Use it when your users decide where money goes: a seller choosing a charity for their listing, a family choosing one for a memorial, or an employee choosing one for a fundraiser.

A compact progress card for one fundraiser. It shows the amount raised against the goal with a progress bar, or the amount raised and number of donors when the fundraiser has no goal. An optional Donate button opens the fundraiser in a new tab, or tells your page to open an embedded donation form.

Live demo Live data from pledge.to

Use it next to a fundraiser on your site, such as a memorial page, a team fundraiser, or a campaign landing page.

A live counter of the giving on your account. It shows either the amount raised, like “$12,480 raised for Surfrider Foundation”, or that amount converted into impact, like “3,120 people provided with clean drinking water for one year”. You choose the icon, color, wording, and the formula that turns dollars into impact, and you can limit it to particular nonprofits. Visitors can flip the card over to read more about the cause.

Live demo Live data from pledge.to

Use it to show customers, employees, or members what your giving program has achieved together.

The widgets can be used on their own or combined. Some common combinations:

  • Choose a cause, then raise money for it. A user picks a nonprofit in the organization search. Your server creates a fundraiser for it with the Fundraisers API. Your page shows that fundraiser’s tracker, and its Donate button opens the donation form. The Memorial Platforms guide walks through this flow.
  • Add giving to a page you already have. Embed a donation form for an Impact Hub fundraiser, or for any nonprofit by its EIN.
  • Show what your program has achieved. Put an impact calculator on a landing page, a dashboard, or an annual report.

Widgets are the fastest way to get started. Pledge hosts the UI and processes the payments, and you can match the widgets to your brand with options such as a brand color.

The REST API is for when you want to build the experience yourself: search nonprofits and show the results in your own UI, create and update fundraisers, or record donations you collected yourself. Many integrations use both, for example creating fundraisers through the API and showing them with widgets.

  • Every widget needs our embed script, once per page.
  • Most widgets need your partner key, which you’ll find in the Impact Hub.
  • To try widgets without real money, use the sandbox and its test card.