Build a donation form with FinDock
In this tutorial you build a donation form from scratch, connect it to FinDock, show a personal confirmation and test a payment without moving real money. It takes about 30 minutes.
You need CampaignSuite connected to a Salesforce sandbox that has FinDock, and FinDock has to be part of your subscription. FinDock payments explains the background.
1. Create the form
Section titled “1. Create the form”- In WordPress go to Forms > New Form and give the form a title, for example “Donation form”.
- Add these fields:
- Name, set to required.
- Email, set to required.
- Amount Choice from the CampaignSuite Fields group, labelled “Amount”. Add choices such as 10, 25, 50 and 100, each with its price. Switch on Enable other choice and set “Other” choice label to “Other amount” and Minimum amount to 5.
- Radio Buttons labelled “Frequency”, with the choices One-time and Monthly. Use exactly these words as values, because those are the values FinDock accepts.
- Radio Buttons labelled “Payment method”, with the choices iDEAL (value
Ideal) and Credit card (valueCreditCard). The values must match FinDock’s payment method names. You can also add the available methods as bulk choices. - Total, which adds up the chosen amount. This is the amount you send to FinDock.
- Save the form and place it on a page, for example with the Gravity Forms block.
See Fields for all settings of the Amount Choice field.

2. Add the FinDock feed
Section titled “2. Add the FinDock feed”- In the form go to Settings > CS | FinDock.
- Under General settings switch on FinDock Connection and Financial form.
- Under Entry information choose the Campaign that donations belong to.
- Under Payment fields choose a Destination, the fund that receives the money. Map Amount to Total, Frequency to your Frequency field and Payment Method to your Payment method field.
- Under Contact map First Name and Last Name to the two parts of the name field, and Email to the email field.
- Click Save Settings.



If you also want every donor added to the campaign as a campaign member, click Add CampaignMember Feed in the general settings.
3. Write the confirmation
Section titled “3. Write the confirmation”-
Go to Settings > Confirmations and edit the default confirmation.
-
Write a message that uses merge tags. This one shows the donor’s first name, the amount, a reference and a different sentence for monthly donors:
Thank you, {Name (First):1.3}! We received your gift of {Total:6}.@if($input_4 == "Monthly") You will support us every month. @else Thank you for your one-time gift. @endifYour reference is {cs:csentry_id}. We sent a receipt to {Email:2}.Replace
1.3,6,4and2with the IDs of your own fields. See Merge tags and templates. -
Click Save Confirmation.

4. Test a payment in the sandbox
Section titled “4. Test a payment in the sandbox”- Open the page with the form in a private window and fill it in with test data, for example “Jane Doe” and [email protected]. Choose an amount, One-time and iDEAL.
- Click Donate. You land on the payment provider’s payment page, which in the sandbox tells you this is a test payment.
- Choose a bank, set the final status of the test payment to Paid and click Continue.

- You come back to your site and see your confirmation with the payment details.

Try the other statuses too. After Failed, the visitor goes back to the form with their data restored and a message asking them to check it and submit again.
5. Follow the payment
Section titled “5. Follow the payment”- Go to Forms > Entries, choose your form and open the newest entry. The Salesforce / FinDock Details box shows the CampaignSuite entry ID, the payment intent and its status, the Salesforce contact, account, campaign and destination, and the one-time payment. If debug is on for the entry, you also see the success, failure and webhook URLs.

- Go to CS Entries > Payments to see all payments and their status.

See Entries and payments for more.
Next steps
Section titled “Next steps”- Count donations in your reports with Measurement.
- Send donors a personal link with prefill or a one-click link.
- React to completed or failed payments with feeds and notifications.