How to Create a Free WordPress Donation Form?

Lana Miro
7 min readApr 14, 2022

This tutorial helps to create the free WordPress donation form with the JetFormBuilder plugin. This guide is part of my WordPress form how-tos, so don’t hesitate to have a look at previous posts: guest post submission form and:

Step 1. Register PayPal account

I don’t have a PayPal account, so I need to set this up first. I’ll need a personal account, so let’s choose the following option:

sign up paypal account

Then, select the country, pass the phone number and general details:

paypal account creation

Then you need to add address details and link the debit/credit card.

Finally, my account is ready:

paypal account was registered

Step 2. Set Up PayPal Gateway Settings

First, I’ve searched for JetFormBuilder free plugin in my WordPress plugins dashboard.

install free jetformbuilder form plugin

After installation and activation, go to JetFormBuilder settings:

paypal gateway api

To get Secret Key navigate to developer.paypal.com > My Apps & Credentials > Create New App. The app is something like a connection between your form and PayPal account.

create new paypal app

After creating, you’ll see Client ID and Secret code, copy these and pass them to your WordPress form PayPal gateway settings.

Step 3. Create Free WordPress Donation Form

The third step is building your WordPress form. Navigate to JetFormBuilder > Add New.

add new donation wordpress form

Name your form and add the needed fields. Here are what I need:

  • First and Last name (set as Text field; not required)
  • Donation amount (as number field; mark as required)
  • Message (Text field; not required)
free donation form

I’ve also changed the Submit button to Donate.

Additionally, you need to choose Post submit action > Save Form Record. This helps to save all submissions in one clean dashboard and is required for creating WordPress forms with a payment gateway.

save form submissions

Press the edit icon and toggle store information from the submitted form.

edit store form records action

Then, go to form settings and find Gateways Settings to pick PayPal Checkout:

Then press the edit button to set up everything. Firstly, we need to toggle Use Global Settings (to pull up the Client ID and Secret Key automatically).

Then choose Gateway Action as Pay Now and press the Sync Access Token button.

edit paypal checkout settings

After this, write the Currency Code (in my case, usd), and choose the form field responsible for Price/amount (Donation amount field). Finally, configure payment messages (success and error) and press the Update button.

Step 4. Add the Donation Form to the WordPress Page

I’ve created the new page and named it Donate; then type “jet,” and you’ll see the JetForm block.

donate wordpress page

After adding the JetForm block to the page, choose the form (Donation form) and style the form if needed (with default Gutenberg settings or via the free JetStyleManager plugin).

choose donation form in jetform block

Here is how my free WordPress donation form looks like:

final wordpress donation form result

Step 5. Test the form

As a result, we can test our donation form. So, I’ve filled up the form:

test wp form

And was automatically redirected to the checkout page:

paypal checkout

After donation/submission, you’ll see all replies on the beautiful form records page, where you can delete or mark each submission as viewed.

form records page

Meanwhile, the JetFormBuilder plugin stores the payments too on the Payments page:

wordpress payments page

Bonuses: Additional WP Donation Form Cases

Besides the simple WordPress donation form, I want to share several additional cases you can try.

#1 Case: Radio Field with Different Amounts

If you are not a fan of the number field, you can set the radio field to let the user choose the donation amount. For this, add the radio form field:

donation amount as radio field

And press Manage items to add amounts manually:

edit manual options

In a result, the form looks like this:

wp donation form with radio fields

#2 Case: Add the Donation Form to Popup

I’ll use the free Elementor page builder and JetPopup plugin. Install and activate plugins first.

elementor and jetpopup plugins

Then, navigate to JetPopup > All Popups > Create New Popup and choose the layout you prefer:

choose popup layout

I like the bordering one. After choosing the layout, you’ll be redirected to the Elementor page builder:

edit bordering popup

Now, I want to add Donate heading and press plus icon to add the JetForm widget:

add jetform widget to popup

Drag-n-drop the widget where you want to add the form and choose the appropriate donate form from the drop-down list:

add donation form to popup

You can style the form with Elementor and set up when the popup should open (in my case, the open event is when the page loads):

popup open event

Then press the Publish button, add the form to the page, and check how it looks. So, when the user opens my home page, the donate popup will appear.

wordpress donation form in popup

Case #3: Click the Donate Button to Open Donation Form

To continue with popups, we can open the donation form after clicking the Donate button.

For this, I’ll create a new popup with a classic layout but the same logic:

classic popup layout

Similarly, create the popup with the form:

classic donation form

Then, drag and drop the Popup Action Button widget to any Elementor page (or use Elementor’s button widget):

popup action button widget

Edit button text:

edit button text

Then, navigate to Advanced settings > JetPopup > Attached Popup and choose the previously created Donation popup. Also, select the trigger type by your preference (I want to open the form after hovering the Donate button).

attach popup to the button

Finally, press the Update/Publish page. I’ve added the button to my home page, and each user can see the clean donate button:

clean donate button

Hence, when the user hovers the button, my beautiful donation popup form appears:

donation wp form in popup

Sum Up

I’m happy with my simple donation WordPress form, which can be added to the page or popup. Don’t hesitate to share your suggestion for the next form creation guide. 😉

--

--

Lana Miro

I’m passionate about website design & development. Working as Content Manager at @Crocoblock. Here is my Twitter account: @Lana_Miro