🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 4, 2026

How to Take Braintree Payments with Gravity Forms

GravityExtra
How to Take Braintree Payments with Gravity Forms

Braintree is one of the most popular ways for small and mid-sized businesses to accept cards online, and it brings PayPal, Apple Pay and Google Pay along in the same account. If your bookings, orders or donations already run on Gravity Forms, connecting the two means customers pay in the same step as they fill in the form, and your team sees the payment right on the entry. This guide explains how a good set-up works, what to prepare in Braintree, the mistakes that lead to wrong amounts or failed payments, and how to test before real money moves.

We use the Gravity Forms Braintree Payment Premium Add-on as the example, but the checklist is useful whichever tool you choose.

How taking a Braintree payment in a form works

A modern Braintree integration has three parts. The first is the payment box on the page: Braintree’s Drop-in UI shows card fields that Braintree hosts, plus buttons for PayPal, Apple Pay and Google Pay. The second is a one-time token: when the customer clicks pay, the Drop-in checks the details, runs bank authentication if needed and hands your page a token that stands for the payment method. The third is the charge on your server: your site sends the token and the amount to Braintree and gets the result back.

The order matters. Because the charge happens on the server, the amount comes from your form’s own calculation, not from whatever the browser says. And because the token is one-time, the card number never passes through your website.

A retreat booking form with name, email, billing address, two products and the total, and the payment box with card fields plus PayPal, Apple Pay and Google Pay above the Pay and book button
The form your customer fills in. Card details go to Braintree, never to your website.

What to prepare in Braintree

  • A Sandbox account for testing. It is free and works exactly like Production with test cards.
  • API keys: the merchant id, public key and private key from Settings, API. Production has its own set.
  • Merchant accounts for each currency you sell in. Braintree takes a payment in the currency of the merchant account used, so a USD form needs a USD merchant account.
  • Payment methods: link PayPal, switch on Apple Pay (and register your domain) and Google Pay if you want them.
  • 3D Secure switched on for your merchant accounts, especially if you have customers in Europe.
  • Subscription plans under Subscriptions, Plans, if you sell memberships or monthly services.

Connect Gravity Forms in four steps

  1. Install the add-on, activate your licence and open Forms, Settings, Braintree.
  2. Leave the environment on Sandbox, paste your Sandbox keys and save. The add-on checks them with Braintree and lists the merchant accounts it found.
  3. Tick the payment methods you want and choose how strict 3D Secure should be.
  4. Add a Braintree feed to your form: choose the transaction type, the amount (usually the form total), charge now or authorize only, and map the email, name and address fields.
Braintree settings: Sandbox or Production, the merchant id, public and private key for each, the merchant account per currency, the connected status with the merchant accounts found, payment methods and the 3D Secure 2 options
Settings: choose Sandbox or Production and enter your Braintree keys. They are checked when you save, and the private key is stored encrypted.

Five mistakes that cost money or customers

1. Trusting the total from the browser

Anyone can change a number in their browser. A safe integration charges the total the form calculated on the server and ignores a total posted by the page. After the charge, it should also compare what Braintree took with the entry, and cancel the payment if they differ.

2. The wrong merchant account for the currency

If your form is in euros but the payment goes to a dollar merchant account, the customer may be charged a different amount than they saw. Pick the merchant account by the form currency, and refuse the payment when no account takes that currency.

3. Skipping bank authentication

In Europe most card payments need 3D Secure. Without it many payments are declined, and fraud losses stay with you. Run 3D Secure 2 in the payment box with the real amount, email and billing address, and have the server refuse card payments that skipped it.

4. Charging twice on a double click

Slow connections and impatient customers lead to double submissions. Every charge, capture and refund should carry a one-time key so Braintree treats a repeat as the same request.

5. Forgetting what happens after the first payment

Subscription charges, failed renewals and disputes all happen days or months later. Without webhooks, your entries never learn about them. Add the webhook address in Braintree and make sure each webhook is verified with your keys before it changes anything.

A quick self-check

Change a product quantity on your test form, pay with a test card and compare three numbers: the total on the form, the amount in the Braintree Control Panel and the amount on the entry. They should be identical, in the same currency, every time.

Subscriptions and memberships

Braintree runs recurring billing from plans. A clean set-up creates a Braintree customer from the form, saves the payment method for repeat charges, charges any setup fee once and starts the subscription on the plan you chose, with the price from the form. From then on, Braintree bills on its own schedule and sends a webhook for every charge, so each monthly payment appears on the entry. When a charge fails, the entry should say so, and turn active again when the next attempt succeeds.

Refunds, voids and captures without leaving WordPress

Your team should not need to log in to Braintree for everyday tasks. With the add-on, each entry has a Braintree box: capture an authorized payment, void one that has not settled yet, or refund part or all of a settled payment. Refresh status reads the transaction again, so a refund someone made in the Braintree Control Panel also shows on the entry.

An entry paid through Braintree and partly refunded: the Braintree box with the status, the transaction, the card, 3D Secure result, merchant account, captured and refunded amounts, the refund form and Refresh status
The entry after a partial refund: Braintree details, refund form and Refresh status.

Test everything in Sandbox first

  1. Pay with the test card 4111 1111 1111 1111 and check the entry and the Sandbox Control Panel match.
  2. Use a 3D Secure test card to see the bank step, and a declined test card to see the error message.
  3. Change quantities and confirm the PayPal and Apple Pay amounts follow the total.
  4. Settle the transaction in Sandbox, refresh the entry and make a partial refund.
  5. Send a test webhook with Check URL, then switch to Production and make one small real payment that you refund.

Charge now or authorize first?

Most forms should charge at once: the customer pays, the entry is marked paid and your confirmation goes out. Authorize first when you need to check something before taking the money, for example a custom order you confirm by hand, a booking that depends on availability or an event that may be cancelled. The amount is held on the card, and you capture it later from the entry, in full or in part. If you do not go ahead, void the authorization and the hold is released. Keep in mind that banks only hold an authorization for a limited time, often about a week for cards, so capture promptly.

Which payment methods to offer

Cards are the base, and every extra method should earn its place. PayPal helps when many of your customers already have a PayPal balance or prefer not to type card details. Apple Pay and Google Pay shine on phones: two taps instead of a long card number, and the device handles authentication. A good payment box only shows the methods that work on the customer’s device and that are switched on in your Braintree account, so offering them costs nothing for customers who cannot use them. Keep the amount in the PayPal, Apple Pay and Google Pay windows in step with the form total as the customer changes quantities, or the customer will see one number in the form and another in the wallet.

Currencies and decimals

If you sell in more than one currency, create a Braintree merchant account for each one. Each currency also has its own number of decimals: the Japanese yen has none, the Kuwaiti dinar has three and most others have two. Sending 1500.50 yen is an error, so a careful integration refuses such a total before anything is charged instead of rounding it silently. In the payment table we keep for every release, the form total, the amount sent to Braintree and the amount on the entry are compared in US dollars, euros, pounds and yen.

Frequently asked questions

Is a Sandbox account enough to try everything?

Yes. Sandbox has test cards for successful, declined and 3D Secure payments, PayPal test accounts and test webhooks, and nothing you do there moves real money.

Do I need a developer?

No. Copying the keys, adding the webhook address and building the feed take a few minutes in the WordPress admin and the Braintree Control Panel. A developer can add extra transaction details with a filter if you need them.

What does the customer see when a card is declined?

A short message under the total that says the payment was declined and nothing was charged, with a fresh payment box to try another card or method. The entry is not saved, so your entry list only holds real orders.

Who this set-up suits

Studios and retreats that take bookings, clubs and schools with memberships, service businesses that send quotes and charge a deposit, and charities taking donations all benefit from payments inside the form. Customers pay in one step, and staff see paid entries, refunds and disputes in the place they already work.

The Braintree setup guide covers every setting step by step. The add-on is available with a 1-site licence for $49, a 5-site licence for $69 or an Unlimited licence for $199 per year, with updates and support included. See the Gravity Forms Braintree Payment Premium Add-on page for the full feature list.

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