Enable Donations in Community Hub
Administrators can enable donations in Community Hub so constituents can make donations with or without logging in.
Important
By default, the anonymous donation page includes a reCapcha card to help prevent fraudulent transactions. This feature is enabled using the Nimble AMS key (Sitekey: 6L****zX ). We recommend that you set up your own account and create a new reCaptcha card that uses your unique key. See reCaptcha
Create a Guest Account
Create an account record that guest donations will be attributed to and update custom settings to use this account.
- Create a new account where the
Last Name
has a value of:Online Guest Checkout
. Copy the ID of this new account from the URL, you will need it in a bit. Learn where the ID is in the Salesforce URL.
You should exclude this account from reports where you don't want guest donations to affect the numbers.
For the following steps, you need to be in Salesforce Lightening Experience
Add the Online Guest Checkout account ID to a custom setting:
- From the App Menu Navigate to "Community Hub Settings"
- Click Edit for
Customization
(Or the Community Hub Instance you're working with).. In
Anonymous Account Id
, paste the ID of the account you just created.
Set up the Entity/Entities
- Configure the Donation Entity (or entities).
- For each of your donation entities:
In the
Checkout Page
field, enter:donatenow
Update Page Layouts
To do the following steps, you need to know how to configure page layouts. Learn how to Customize Record Details with Page Layouts on Trailhead.
Add the
Checkout Page
field to your page layout(s) for the Entity object.We recommend adding it to a section named
Community Hub
along with the following fields: ,Payment URL (Cart)
Add the
Appeal
andAnonymous
fields to your page layout(s) for the Donation object.Add the following fields and related list to your page layout(s) for the Product object that are assigned to the Donation record type.
Fields
We recommend including the
Appeal Product Link Name
,Appeal
andCheckout URL
fields in the related list.
Make Suggested Donation Amounts Available
Assign
Suggested Donation Amounts
picklist values to the Product object's Donation record type. Learn how to Edit Picklists for Record Types at Salesforce Help.These values represent donation amounts (in US dollars). Any values you select here are made available to staff when they are configuring a donation product. This doesn't globally apply these suggested donation amounts to all the products that your constituents see in Community Hub. In others words, on a per-donation product basis, staff can select which suggested donation amount(s) appear. The available values that staff can select from is determined by what you select here. No pressure.
By the way, you can add more values. Learn how to Add or Edit Picklist Values. Just be sure to add them to the Donation record type too.
Grant Permissions
Grant Edit permission to the Community Hub Login User profile and the Community Hub Guest permission set for the following fields on the Order object:
Additional Emails
Confirmation Email
- Grant Read to permission to staff for the
Appeal
field on the Cart Item Lineobject.
Add Donate Link in Community Hub
Constituents need a link to go to the donation page.
Create a menu item (learn how) that links to the /donate page in Community Hub.
For example, if you want to add a link in the global menu, go to the Navigation tab and create a new navigation item with the following values:
Field Value Name
Donate Now
Menu
Global
Title
Donate Now
URL
/donate
CSS Class
m-highlight
"
m-highlight
" is optional. It simply adds a border around the button to call it out more prominantly: