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

How to Accept 2Checkout (Verifone) Payments With Gravity Forms

GravityExtra
How to Accept 2Checkout (Verifone) Payments With Gravity Forms

2Checkout, now part of Verifone, is a popular choice for businesses that sell to customers in many countries. One account handles cards in dozens of currencies, takes care of local payment rules and can renew subscriptions for you. If your order, booking or membership forms are built with Gravity Forms, you can take those payments directly on your WordPress site instead of sending people to a separate shop.

This tutorial shows how to accept 2Checkout payments with Gravity Forms using the Gravity Forms 2Checkout (Verifone) Payment Gateway Premium Add-on: how to connect the account, choose between the hosted 2Checkout checkout and card fields on the form, sell one-time products and subscriptions, confirm every payment safely and handle refunds.

A Gravity Forms checkout form for a Saturday weaving workshop at 120 dollars: name, e-mail and address fields, the product and total, and the Card details field with Name on card, the secure 2Checkout card number, expiry and security code fields, a note that card details go straight to 2Checkout and are never stored on the site, and the Pay securely button
Card fields on the form: the 2Checkout Card field takes the card securely, right inside your Gravity Forms form.

Why Connect Gravity Forms to 2Checkout

  • One form, every detail. The customer fills in the order, the booking details and the payment in one place, and you get one Gravity Forms entry with everything.
  • International customers. 2Checkout accepts cards in many currencies, so customers abroad pay in a currency they know.
  • Subscriptions without extra software. 2Checkout renews memberships and boxes automatically, and every renewal is written to the entry.
  • Your existing workflow. Notifications, confirmations, conditional logic and exports keep working exactly as you know them.

What You Need

You need WordPress with HTTPS, Gravity Forms 2.9 or newer, a 2Checkout (Verifone) merchant account and the GravityExtra add-on. For testing you can place test orders on your own account or use a 2Checkout sandbox account. Keep the merchant control panel open in another tab; you will copy a few values from it.

Step 1: Install the Add-on and Activate the Licence

Upload the add-on zip in Plugins, Add New, Upload Plugin and activate it. Then open Forms, Settings, 2Checkout, paste your GravityExtra licence key and click Activate License. The 2Checkout account settings appear as soon as the licence is active.

Step 2: Enter Your 2Checkout Credentials

In the 2Checkout control panel, open Dashboard, Integrations, Webhooks and API. Copy the merchant code, the secret key and the buy-link secret word into the Test fields of the add-on and save. The merchant code identifies your account; the secret key signs every API call and checks every notification; the buy-link secret word signs the hosted checkout links so nobody can change the price in the browser. The secrets are stored encrypted and are never displayed again, and a green status line confirms that 2Checkout accepted them.

Step 3: Add the IPN Address

The settings page shows the notification address of your site. Paste it into the IPN settings of 2Checkout and choose the SHA3 or SHA2 hash. This one step is what makes the integration reliable. Customers often close the browser right after paying, 2Checkout sometimes reviews an order for a few minutes before completing it, and subscription renewals happen months after the form was sent. In all those cases the IPN tells your site what happened. The add-on checks the signature of each notification with your secret key and then reads the order from the 2Checkout API, so a fake notification can never mark an entry as paid.

Step 4: Choose How Customers Pay

Each payment feed offers two checkout types, and both are safe for card data because cards never reach your server.

The hosted 2Checkout page

After submitting the form, the customer pays on the secure 2Checkout checkout and returns to your site. The add-on sends the product name, price and currency from the form, plus the customer’s name, e-mail and address, so the checkout is already filled in. This is the simplest option and it lets 2Checkout show any extra payment methods your account offers.

Card fields on your form

Add the 2Checkout Card field to the form and the customer types the card right on your page, in secure fields served by 2Checkout. When they click the button, the card becomes a one-time token and the order is placed before the entry is saved. The big advantage: if the bank declines the card, the reason appears on the form and the customer can try another card at once, without losing what they typed and without leaving a failed entry behind. When the bank asks for 3-D Secure, the customer confirms on the bank page and comes straight back.

Step 5: Create a Payment Feed

Edit your form, open Settings, 2Checkout and add a feed. Choose Products and Services for one-time payments, select the form total as the amount, pick the checkout type and give the product a clear name, such as “Saturday weaving workshop”. Map the billing fields and tick the option to send form notifications only after the payment is approved. That way your team never receives an order e-mail for a payment that did not go through.

The 2Checkout feed of a form: feed name, transaction type Products and Services, payment amount Form Total, the Checkout choice between the hosted 2Checkout page and card fields on the form, the product name shown on the 2Checkout order, the option to send form notifications only after the payment is approved, the billing information mapping for name, phone, e-mail and address, and conditional logic
The 2Checkout feed: hosted page or card fields, product name, notifications and billing fields.

Selling Subscriptions

Memberships, monthly boxes and classes are perfect for 2Checkout subscriptions. Choose Subscription as the transaction type, set the recurring amount and the billing cycle, and decide how many payments to take or let it renew until the customer cancels. Two extras make subscriptions easier to sell:

  • A setup fee is added to the first payment, for example a one-time joining fee.
  • A trial price charges a lower amount for the first cycle, such as 5 dollars for the first month of a 30 dollar studio pass. It is a gentle way to let people try your service.

2Checkout renews the subscription automatically, and each renewal arrives at your site by IPN and is added to the entry as a payment, once. If a renewal fails, the entry shows it and 2Checkout retries. When you click Cancel Subscription on the entry, the subscription is disabled at 2Checkout too. Once a day the add-on also checks active subscriptions and closes the entry when a subscription expired or was cancelled in the control panel.

Refunds From the Entry Screen

Customers change their plans, and refunds should take seconds. Open the entry, enter the amount in the 2Checkout box and click Refund. You can refund part of a payment, for example the lunch of a workshop someone could not attend, and the rest later. The entry shows Partially Refunded or Refunded, and refunds made in the 2Checkout control panel arrive by IPN and update the entry as well.

The 2Checkout box on an entry: a Test mode badge, the message Refunded 10 dollars, status Partially Refunded, type one-time payment, checkout hosted 2Checkout page, card Visa ending 1111, amount 45 dollars, refunded 10 dollars, the 2Checkout order number and reference, a link to the 2Checkout control panel, the refund amount field with a Refund button, the note that up to 35 dollars can be refunded and a Refresh status from 2Checkout button
The 2Checkout box on the entry: status, order, card, refunds and a Refresh button.

Test Before You Go Live

Keep the add-on in Test mode while you build. Test orders do not charge any card, and every test entry shows a clear Test mode badge. Try an approved card, a declined card and a 3-D Secure card, make a refund, and check that the IPN marks entries as paid even when you close the browser after paying. Then enter the live credentials, paste the IPN address into the live account, switch to Live and make one small real payment that you refund afterwards.

What Happens Behind the Scenes

It helps to know how a payment moves from your form to your entry list. When the form is sent, the add-on works out the amount on the server from your product fields, never from the browser. On the hosted page, the signed link carries that amount to 2Checkout; with card fields, the order is placed through the 2Checkout API with the one-time token. Either way, 2Checkout then reports the result: the customer returns to your page, and a few seconds later the signed IPN arrives. Each time, the add-on asks the 2Checkout API for the order and compares the reference, the amount and the currency with the entry before anything changes. Only then is the entry marked as paid, the payment events fire and the held notifications go out. If two messages arrive at the same moment, the entry is updated once, and a notification that is sent again never records a second payment. This is why your entry list stays an accurate record of what was really paid.

Tips for Smooth 2Checkout Payments

  • Use clear product names. The name appears on the customer’s receipt and bank statement details, so “Studio membership 2027” avoids confused questions.
  • Pick the right checkout per form. Card fields keep customers on your page; the hosted page is ideal when you want 2Checkout to offer more payment methods.
  • Watch for orders under review. Orders that 2Checkout is still reviewing show as Authorized and become Paid by themselves. Ship or confirm bookings once they are Paid.
  • Send receipts from Gravity Forms. Use the Payment Completed and Subscription Payment Added events for branded receipts with all the form details.

Frequently Asked Questions

Do card numbers pass through my website?

No. On the hosted page the customer types the card at 2Checkout, and the card fields on the form are served by 2Checkout and turn the card into a one-time token in the browser. Your site never sees or stores card numbers.

Which currencies can I use?

The add-on uses the Gravity Forms currency of your site and supports 36 currencies, as long as your 2Checkout account is enabled for them. An unsupported currency is refused before anything is sent.

Can I offer a free trial?

2Checkout needs a first payment above zero, so the add-on offers a trial price for the first cycle instead, or a setup fee with the first payment.

Which Gravity Forms version do I need?

Gravity Forms 2.9 or newer with any licence, WordPress 6.5 or newer and PHP 7.4 or newer.

Take 2Checkout Payments in Gravity Forms

Hosted checkout or card fields on the form, subscriptions with setup fees and trials, refunds from the entry and signed IPN confirmation.

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