🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Donation Sync Premium Add-on Setup Guide

Updated 10 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Install and Activate
  5. Build the Donate Form
  6. Add the Donation Feed
  7. What Happens When a Payment Completes
  8. Record it only when the payment completes
  9. Status Table
  10. Campaign and Donation Form Choices
  11. The Goal Merge Tag
  12. Entry merge tags
  13. Subscriptions
  14. Pledges and Gifts Without a Payment
  15. The Gravity Forms Gateway in GiveWP
  16. For Developers
  17. Limits to Know
  18. Frequently Asked Questions
  19. Does it work with every Gravity Forms payment add-on?
  20. Will GiveWP send a receipt too?
  21. Why is my donation Pending?
  22. Why does the goal not move?
  23. Can I record old entries?
  24. Does it send data outside my site?

Video walkthrough

Gravity Forms GiveWP: Record Donation Pledges as GiveWP Donations with the Free Plugin
Gravity Forms pledges become donations in free GiveWP Watch on YouTube

Donation Sync joins Gravity Forms and the free GiveWP donation plugin. People give through a Gravity Forms form and your Gravity Forms payment add-on takes the money. When the payment completes, the add-on records it in GiveWP as a donor and a donation, linked to the campaign you choose, so GiveWP’s goals, reports, donor totals and screens count it like any other gift. It never touches a card.

A Donate form with name, email, phone, address, company, comment, a give anonymously box, an in honor of line, a Campaign drop-down that shows each campaign with its goal progress, and a gift amount
The Campaign drop-down is filled from GiveWP and can show each goal in the label.

What You Get

  • A donation feed that creates the donor (matched by email address) and the donation: amount, currency, status, transaction ID, name, title, phone, company, billing address, comment and anonymous flag.
  • A payment gateway called Gravity Forms, registered in GiveWP the proper way. The donation shows it as its payment method, and it is never offered on a GiveWP donation form.
  • Donations linked to a GiveWP campaign or donation form, chosen in the feed or by a field of the form.
  • Status that follows the payment: Pending, Completed, Refunded, Failed, Cancelled. A refund in Gravity Forms takes the donation out of GiveWP totals and goals.
  • Each later payment of a subscription as its own donation of the same donor.
  • Campaign and donation form choices for drop-down and radio fields, with the goal progress in the label if you like.
  • A goal merge tag that prints the amount raised, the percent, the amount left or a progress bar.
  • Entry notes, entry meta, merge tags, a box on the entry screen with a link to the donation, and feed conditions.

Requirements

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer, with a payment add-on for the forms that take money.
  • The free GiveWP plugin. Campaigns need GiveWP 4.0 or newer; this version was tested with GiveWP 4.19.0.
  • The currency of Gravity Forms must be the currency GiveWP counts, so every amount means the same thing in both.
  • A GravityExtra license key.

Install and Activate

  1. Install and activate Gravity Forms and the free GiveWP plugin if they are not active yet.
  2. Upload and activate the Gravity Forms Donation Sync Premium Add-on.
  3. Go to Forms → Settings → Donation Sync, enter your license key and press Activate. The page then shows the GiveWP version it found, how many active campaigns and donation forms there are, the GiveWP currency and whether GiveWP is in live or test mode.

If GiveWP is missing, too old or switched off, a notice on the Forms screens says so. Your forms keep working, the entries are saved, and each entry gets a note that no donation was recorded.

Build the Donate Form

  1. Create a form with a Name field, an Email field and a product field for the gift (a product field with a user defined price is the usual choice) and a Total field. Add the other fields you want to keep: phone, address, company, a comment, a checkbox for giving anonymously and a line for a tribute or dedication.
  2. Add a drop-down or radio field for the campaign. Open its settings and find GiveWP choices: choose Campaigns (the value is the campaign ID) and, if you like, tick Show the goal progress in the label.
  3. Add the feed of your Gravity Forms payment add-on (Stripe, PayPal or any other) as usual.

Add the Donation Feed

Open Form Settings → Donation Sync, press Add New and fill in the sections.

The Donation Sync feed settings in Gravity Forms: where the donation goes, amount and status, GiveWP e-mails, the donor field map, existing donors, payment changes and subscription payments
One feed: choose the campaign, map the donor fields and decide what happens on refunds and later payments.
Setting What it does
Where the donation goes One campaign, one donation form, or a field of the form that holds the campaign ID or the form ID. A campaign that is archived or a form that is not published is refused at the field when the form is sent.
Amount The payment amount of the entry (the order total when the form has no payment add-on), or the value of a number field for pledges and offline gifts.
Status when there is no completed payment For a form without a payment: Pending (the default, so it does not count as raised yet) or Completed.
Live or test donation Follow the GiveWP setting, or always live, or always test. GiveWP counts only the donations of its current mode in its totals.
GiveWP e-mails Off by default: your Gravity Forms notifications already thank the donor. Choose Send to let GiveWP send its donation receipt and its new donation notice too.
Donor Map the fields you have. Only the email is needed. Without a name the donor is named after the email address.
Existing donors Fill in details the donor does not have yet (phone, company, title, address). Details that are there are never overwritten.
WordPress user Link the donor to the user with the same email address, so the donor can reach the GiveWP donor dashboard.
Payment changes Update the donation when the payment is refunded, fails or is voided.
Subscription payments Record every later payment of a Gravity Forms subscription as its own donation.
Condition Record the donation only when the conditional logic you set is met.

What Happens When a Payment Completes

The add-on works through GiveWP’s own models, so everything GiveWP does for a donation happens: the revenue record, the campaign goal, the donor totals, the sequential number and its hooks.

  1. The donor is looked up by email address, among the main addresses and the additional ones. If there is none, a donor is created with the name, title, phone, company and address from the form.
  2. The donation is created with the amount, the currency of the entry, the status, the gateway Gravity Forms, the transaction ID of your payment add-on, the billing address, the comment and the anonymous flag.
  3. A note on the donation says which entry and form it came from, how it was paid and what the tribute said. A note on the entry says which donation was recorded, for which campaign, and whether the donor is new.
  4. When the payment add-on reports a refund, a failed payment or a voided authorization, the donation gets Refunded, Failed or Cancelled and both sides get a note.

Record it only when the payment completes

In the feed of your payment add-on, under the post payment actions, tick the Donation Sync option. The donation is then created only after the payment completed. Without it the donation is created at once as Pending (the payment is still open) and becomes Completed when the payment add-on reports it paid, which fills in the transaction ID and the payment method.

The GiveWP donation screen of a donation recorded from a Gravity Forms payment, with the donor, the gateway Gravity Forms, the campaign and the notes
The donation is a normal GiveWP donation, with the gateway Gravity Forms and a note that says where it came from.

Status Table

Gravity Forms reports GiveWP donation Counted in goals and reports
Payment open, authorized or pending Pending No
Payment completed, subscription active Completed Yes
Payment refunded Refunded No, taken out again
Payment failed Failed No
Authorization voided, subscription cancelled or expired Cancelled No
Later subscription payment A new Completed donation Yes

If you change a donation in GiveWP, for example you complete a pledge by hand, the entry gets a note and its donation status follows.

Campaign and Donation Form Choices

Any drop-down or radio field can list your active campaigns or your published donation forms. The choices are read from GiveWP each time the form is shown, checked and saved, so a new campaign appears at once and an archived one disappears. The value of each choice is the ID, which is what a feed reads when it takes the campaign from a field. The choices you typed in the editor stay as a fallback if GiveWP is not available, and they are never overwritten in the saved form.

The Goal Merge Tag

Put the goal of a donation form on your page, in a confirmation or in a notification. The number is the ID of a GiveWP donation form (a campaign’s default form is the form of the campaign); for a campaign ID write campaign: in front of it.

{give_goal:12}            1,250.00 raised of 5,000.00 (25%)
{give_goal:12:raised}     1,250.00
{give_goal:12:goal}       5,000.00
{give_goal:12:percent}    25%
{give_goal:12:left}       3,750.00
{give_goal:12:title}      Spring Appeal
{give_goal:12:bar}        a progress bar with the line under it
{give_goal:campaign:3}    the same for campaign 3

The tag works in HTML fields, field descriptions, confirmations and notifications. The progress bar is plain HTML with inline styles, so it also works in an e-mail; in a plain text notification it prints the line without the bar. For a goal counted in donations or donors the line reads 3 of 10 donations. A form without a goal prints only the amount raised. An unknown number prints nothing, and a text that is not a goal tag is left as it is.

Entry merge tags

Thank you! Gift number {give_donation_id} of {give_donation_amount} to {give_campaign}.
Status: {give_donation_status}
{give_goal:12:bar}

The tags are give_donation_id, give_donor_id, give_donation_status, give_donation_amount, give_campaign and give_form. They are empty for an entry that has no donation.

Subscriptions

When a Gravity Forms payment add-on reports a payment of a subscription that was started by an entry that already has a donation, the add-on records it as a new donation of the same donor, with its own transaction ID, so the campaign goal grows with every payment. A transaction that is reported twice is recorded once. Switch it off with the Subscription payments option of the feed.

Pledges and Gifts Without a Payment

A form that takes no payment can still record a donation: set Amount to a field of the form, choose a number field, and decide whether the donation is Pending or Completed. A Pending donation does not count as raised until you complete it in GiveWP, and the entry notes when you do.

The Gravity Forms Gateway in GiveWP

The add-on registers a gateway called Gravity Forms in the GiveWP gateway register. GiveWP lists it with the other gateways and shows it as the payment method of the donation, in the donation screen, the receipt and the Donations list. It supports no donation form version, so it can never be offered to a donor on a GiveWP form, and it does not support refunds from GiveWP: refund with the Gravity Forms payment add-on that took the payment, and the donation follows.

For Developers

Change the request before the donation is made, or run code after the donation was recorded, a status changed or a later payment was recorded.

// Change the comment that is saved with every donation.
add_filter( 'gfgive_donation_request', function ( $request, $feed, $entry, $form ) {
    $request['comment'] = trim( $request['comment'] . ' (form: ' . $form['title'] . ')' );
    return $request;
}, 10, 4 );
// Run your own code after a donation was recorded, a status changed, or a later payment was recorded.
add_action( 'gfgive_donation_created', function ( $donation_id, $request, $feed, $entry, $form ) {
    // $donation_id is the GiveWP donation, $request holds the donor, amount, campaign and status.
}, 10, 5 );
add_action( 'gfgive_status_changed', function ( $donation_id, $status, $entry, $action ) {
    // $status is complete, refunded, failed or cancelled.
}, 10, 4 );
add_action( 'gfgive_later_payment_recorded', function ( $donation_id, $request, $entry, $action ) {
    // A later payment of a Gravity Forms subscription became its own donation.
}, 10, 4 );

The add-on uses GiveWP’s Donor, Donation and Campaign models, the gateway register (the givewp_register_payment_gateway action), give_update_payment_status, give_insert_payment_note, give_goal_progress_stats and the give_is_stop_email_notification filter. No GiveWP table is written to directly.

Limits to Know

  • The currency of the payment must be GiveWP’s currency. A payment in another currency is not recorded and the entry says why.
  • GiveWP in test mode makes test donations, which its live goals and reports do not count. Set the feed to always live if that is what you want.
  • The tribute or dedication is kept as donation meta and in a donation note. The tribute fields of the paid GiveWP Tributes add-on are not written.
  • The add-on does not take or refund money, and it does not change GiveWP settings, forms or campaigns.

Frequently Asked Questions

Does it work with every Gravity Forms payment add-on?

Yes. It listens to the standard Gravity Forms payment events, so it works the same for any add-on built on the Gravity Forms payment framework.

Will GiveWP send a receipt too?

Not by default. Your Gravity Forms notifications thank the donor. Choose Send in the feed if you want GiveWP’s own donation receipt and new donation notice as well.

Why is my donation Pending?

Either the payment was still open when the feed ran, or the form has no payment and the feed is set to record a Pending donation. It becomes Completed when the payment add-on reports it paid or when you complete it in GiveWP.

Why does the goal not move?

Check that the donation is Completed, that it belongs to the campaign, and that its mode (live or test) is the mode GiveWP is in.

Can I record old entries?

The feed records new payments. Use Resend feeds on an entry to run its feed again; an entry that has a donation already never gets a second one.

Does it send data outside my site?

No. Everything happens on your own site. Only the license check talks to gravityextra.com, when you press Activate.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr