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

Gravity Forms Gift Cards & Codes Premium Add-on Setup Guide

Updated 5 min read Gravity Forms Payments & Pricing
On this page
  1. Video walkthrough
  2. Step 1: Install and Activate Your License
  3. Step 2: Sell Gift Cards (or Create Codes From Any Form)
  4. Step 3: Send the Code
  5. Step 4: Let Visitors Redeem Codes
  6. Step 5: Manage Codes
  7. Troubleshooting & FAQ
  8. The total does not change when I apply a code.
  9. Can two people use the same gift card at the same moment?
  10. What happens if a payment fails?
  11. Can I refund an order that used a gift card?
  12. What happens when I uninstall the add-on?
  13. Related

Video walkthrough

Sell Gift Cards & Discount Codes with Gravity Forms (Balances, Redeem Field)
Gift Cards & Codes in under 2 minutes: sell a card, email the code, redeem it with a balance Watch on YouTube

The Gravity Forms Gift Cards & Codes Premium Add-on lets you sell gift cards and hand out discount codes with Gravity Forms. A feed creates a unique code when an entry is submitted — for example when someone buys a gift card — and a Gift Card / Code field lets visitors redeem it on any product form. The discount comes off the order total, partly used gift cards keep their balance, and every use is recorded.

This guide covers installation, selling gift cards, discount codes, redeeming, managing codes and troubleshooting.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.9 or higher, any licence
  • Products: forms that redeem codes need Gravity Forms product fields and a Total field
  • GravityExtra license: The add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and Activate Your License

  1. In WordPress go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Go to Forms → Settings → Gift Cards, enter your key in the Gravity Extra License section and click Activate License.

Step 2: Sell Gift Cards (or Create Codes From Any Form)

Build a form that sells the gift card, for example a product field with the gift card amounts, a recipient email field and a Total field, plus your payment add-on. Then open the form’s Settings → Gift Cards and add a feed:

  • Create — a gift card with a balance or a percent discount code.
  • Balance (gift cards) — the order total of the entry, the value of a field, or a fixed amount.
  • Discount in percent and Times the code can be used (percent codes; 0 = no limit).
  • Code prefix — codes look like GIFT-7KQ2-M9XD. The random part never uses look-alike characters such as 0/O or 1/I.
  • Valid for (days) — 0 = never expires. Check the rules for gift cards where you sell them; some places require a minimum period.
  • Recipient email — optional; stored with the code so you can find it later.
  • Condition — create the code only when a condition is met.
Gift Cards feed settings: create a gift card with a balance equal to the order total, code prefix GIFT, valid for 365 days, recipient email field
A Gift Cards feed that turns the order total into a gift card balance.

With a payment add-on that supports it, tick Create the code only when the payment is received so no code exists before the money does.

Step 3: Send the Code

Add a notification to the gift card form, sent to the recipient email field, with these merge tags:

  • {gift_code} — the code.
  • {gift_code:value} — the amount ($100.00) or percent (15%).
  • {gift_code:expires} — the expiry date, or “never”.

The same merge tags work in the confirmation message. If codes are created when the payment arrives, send the notification on the payment event of your payment add-on.

Step 4: Let Visitors Redeem Codes

On the form where people buy (a booking, an order or a donation form with products and a Total field), add the Gift Card / Code field from Pricing Fields. In its settings choose what it accepts: gift cards and discount codes, gift cards only, or discount codes only.

Visitors type the code and click Apply (or press Enter). The total updates right away and a message shows the discount and, for gift cards, the balance left after the order. Remove takes the code off again.

A Gravity Forms booking form with an $80.00 ticket and a gift card code applied: the message says Gift card applied: $80.00 off. Balance left after this order: $20.00, and the total shows $0.00
A gift card covers the whole $80.00 order; $20.00 stays on the card.
  • Gift cards pay up to their balance; if the order is larger, the rest is paid as usual. If the card is worth more, the rest stays on it for the next order.
  • Percent codes take the percent off the order (products and shipping).
  • The code is checked again when the form is submitted, so a code changed in the browser is refused. The discount is added to the order as its own line, so the Total, the payment and the order summary in notifications all show it.
  • Wrong codes are counted per visitor; after the number set in Forms → Settings → Gift Cards (20 per hour by default) the visitor has to wait.

Step 5: Manage Codes

Open Forms → Gift Cards:

Gift Cards & Codes page with active codes, open gift card balance and the amount redeemed, a search box, Export CSV, and a list of codes with value, balance or uses, status and the entry they came from
All codes with their balance, uses, status and the entry they came from.
  • Totals: active codes, the open balance of all gift cards, and the amount redeemed so far.
  • Search by code, recipient or note, and Export CSV.
  • Create a code by hand — for a gift card sold in your shop, a voucher for a customer or a one-off discount. You can type your own code.
  • Set balance — correct a gift card, for example after a refund.
  • Void / Reactivate — a void code is refused at checkout.
  • History — every order the code was used on, with the amount and a link to the entry.

Troubleshooting & FAQ

The total does not change when I apply a code.

The form needs product fields and a Total field. If the field is hidden by conditional logic, the code is not used.

Can two people use the same gift card at the same moment?

The balance is taken off in one database step that never lets it go below zero. If a card was emptied by another order in the same second, the second entry gets a note so you can check it.

What happens if a payment fails?

Gravity Forms does not save an entry when the card payment is declined, so the gift card is not used. For payments confirmed later, the code is used when the entry is saved.

Can I refund an order that used a gift card?

Use Set balance on the codes page to give the amount back to the card.

What happens when I uninstall the add-on?

Forms → Settings → Uninstall removes all codes, their history and the settings. Export the codes first if you need them.

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