Skip to content
This repository was archived by the owner on Mar 3, 2021. It is now read-only.

Donation URL params

Yutaka Houlette edited this page Nov 29, 2016 · 3 revisions

What are URL params?

URL params (short for parameter) are a way of sending additional information via a URL. URL params are appended to the path of a URL and begin with a ? symbol, and each parameter is typically separated by a & symbol. Here is an example: http://cool-animals.com/search?country=australia&environment=desert. (You can read more about URLs here).

The CommitChange donation page uses URL params to set things like custom amounts and campaign IDs.

What URL params do the CommitChange donation page accept?

param value example what it does
campaign_id ID of campaign campaign_id=123 associates the donation with the campaign
gift_option_id ID of gift option (be sure to also set the campaign_id param) gift_option_id=123 associates the donation with the gift option
single_amount amount in dollars single_amount=25 restricts the donor to a preset donation amount
type 'recurring' type=recurring presets all donations to be recurring
custom_amounts comma separated dollar amounts custom_amounts=5,10,25 restricts the donor to preset donation amounts
redirect URL redirect=http://example.com redirects to URL after donation
designation text designation=Fall Fundraiser associates the donation with the designation
designation_desc text designation_desc=Help keep a family fed this fall shows a description of the designation
multiple_designations comma separated text multiple_designations=Fall Fundraiser, Winter Fundraiser shows a dropdown to let donors choose from multiple designations

Clone this wiki locally