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

Gravity Forms 2Checkout (Verifone) Payment Gateway Premium Add-on Setup Guide

Updated 10 min read Gravity Forms Payments & Pricing
On this page
  1. Video walkthrough
  2. Installation
  3. Connect Your 2Checkout Account
  4. Paste the IPN address into 2Checkout
  5. Choose the Checkout Type
  6. Hosted 2Checkout page
  7. Card fields on the form
  8. Create a Feed
  9. How Payments Are Confirmed
  10. Refunds
  11. Subscriptions
  12. Notifications
  13. Test Mode and Going Live
  14. Troubleshooting
  15. The status says 2Checkout did not accept the merchant code or secret key.
  16. Entries stay Processing after a hosted payment.
  17. The card fields do not appear.
  18. A note says an order does not match the expected amount, currency or reference.
  19. A refund was refused.
  20. What happens without an active licence?
  21. Take 2Checkout Payments in Gravity Forms

Video walkthrough

Gravity Forms 2Checkout (Verifone) Payment Gateway: Setup, IPN URL, Card Field and Feed
Set up 2Checkout (Verifone) payments in Gravity Forms, WordPress side Watch on YouTube

The Gravity Forms 2Checkout (Verifone) Payment Gateway Premium Add-on connects Gravity Forms to 2Checkout, the payment platform that is now part of Verifone. Customers pay by card either on the secure 2Checkout checkout page or in secure card fields right on your form. The add-on takes one-time payments and subscriptions with a setup fee or a trial price, records every renewal, lets you refund from the entry screen, and confirms every payment server to server with signed IPN notifications and a check with the 2Checkout API.

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.

This guide covers installation, the 2Checkout account settings, the IPN address, the two checkout types, feeds for one-time payments and subscriptions, how payments are confirmed, refunds, subscriptions and renewals, notifications, test mode, going live and troubleshooting.

Requirements

  • WordPress 6.5 or newer, PHP 7.4 or newer, and HTTPS on your site.
  • Gravity Forms 2.9 or newer (any licence). Tested with Gravity Forms 2.9 and 3.1.
  • A 2Checkout (Verifone) merchant account. For testing, test orders on your account or a 2Checkout sandbox account.

Installation

  1. Download the add-on zip from your GravityExtra account and upload it in Plugins → Add New → Upload Plugin, then activate it.
  2. Go to Forms → Settings → 2Checkout, enter your key in the Gravity Extra License section and click Activate License. The account settings appear once the licence is active.

Connect Your 2Checkout Account

In the 2Checkout Merchant Control Panel open Dashboard → Integrations → Webhooks & API. You need three values from that page:

Setting Where to find it What it is used for
Merchant code The Merchant Code at the top of the API section Identifies your account in API calls, buy links and the card fields.
Secret key The Secret Key of the API section Signs every API call and checks the signature of every IPN.
Buy-link secret word The Secret Word in the Buy link section Signs the hosted checkout links so nobody can change the price or the product.
INS secret word (optional) The INS settings, if you use INS Checks legacy INS messages; when it is empty the buy-link secret word is used.

Paste the values for Test first and click Save Settings. The secret key and the secret words are stored encrypted in their own database options and are never shown again: the fields stay empty after saving, and you only fill them in again to replace a value. Below the fields the add-on checks the connection and shows Connected to merchant with your merchant code, or the reason when 2Checkout did not accept the code or the key.

Paste the IPN address into 2Checkout

The Payment Notifications section shows the address of your site that receives notifications. Copy it, open the IPN settings in the 2Checkout control panel, add the address as the IPN URL and choose the SHA3 or SHA2 hash. If you also use INS, paste the same address as the INS URL. Notifications are how your entries learn about payments when the customer closes the browser, about orders completed after 2Checkout’s review, about refunds made in the control panel and about every subscription renewal, so do not skip this step.

Why notifications are safe

Each IPN is checked with your secret key before anything happens, and the add-on then reads the order from the 2Checkout API with your own credentials. Only an order with the reference, amount and currency the entry expects changes the entry. A forged or replayed notification cannot mark an entry as paid.

Choose the Checkout Type

Each feed chooses how the customer pays. You can use both types on one site, for example the hosted page for subscriptions and card fields for event tickets.

Hosted 2Checkout page

After the form is sent, the customer goes to the secure 2Checkout checkout to pay. The add-on builds a signed buy link with a dynamic product (the product name, price and currency from your form), the entry’s reference, the return address and, when you map them, the customer’s name, e-mail and address so they do not have to type them again. The link is signed with your buy-link secret word, so the price cannot be changed in the browser. In test mode the link places a test order. After paying, the customer comes back to your form page and sees your confirmation.

Card fields on the form

Add the 2Checkout Card field from the Pricing Fields group to the form and set the feed’s Checkout to Card fields on the form. The field shows a Name on card input and the secure 2Checkout card fields (card number, expiry and security code), loaded from 2Checkout with 2Pay.js. When the customer clicks the submit button, 2Pay.js turns the card into a one-time token in the browser; the card number never reaches your site. The add-on then places the order through the 2Checkout REST API 6.0 before the entry is saved:

  • Approved: the entry is saved as Paid (or Active for a subscription) and the customer sees your confirmation on the same page.
  • Declined: the reason appears on the card field, for example “Card declined by the issuing bank”, and no entry is saved, so your entry list stays clean.
  • The bank asks for 3-D Secure: the customer goes to the bank page to confirm and comes back to your form, where the payment is confirmed.

The token is used once and is never stored in the entry. If the card fields cannot be loaded, the customer sees a message instead of a broken form.

Create a Feed

Edit the form, open Settings → 2Checkout and click Add New.

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.
Setting What it does
Transaction Type Products and Services for one-time payments, Subscription for recurring payments.
Payment Amount Form Total or one product field.
Checkout Hosted 2Checkout page, or card fields on the form (needs the 2Checkout Card field).
Product name Shown on the 2Checkout checkout, the receipt and in your 2Checkout orders. Merge tags are supported, for example the customer’s first name.
Notifications Send the form notifications only after the payment is approved, so your team never ships an unpaid order.
Billing Information Map name, e-mail, phone and address. They prefill the hosted checkout and are sent with card-field orders.
Conditional Logic Process the feed only when your conditions are met, for example when “Pay by card” is chosen.

The currency is the Gravity Forms currency of your site (Forms → Settings → Currency). The add-on supports 36 currencies, including USD, EUR, GBP, AUD, CAD, CHF, the Nordic currencies, JPY and many more; your 2Checkout account must be enabled for the currency. A currency that is not supported is refused with a clear message before anything is sent to 2Checkout.

How Payments Are Confirmed

The add-on never trusts the browser. Whatever brings the news (the customer’s return, an IPN, an INS message, the scheduled check twenty minutes after the checkout or the Refresh button) it always reads the order from the 2Checkout API and compares the reference, the amount and the currency with the entry. The order status then sets the entry status:

2Checkout order status Entry status
COMPLETE Paid, with the 2Checkout order number as the transaction id.
AUTHRECEIVED Authorized: the card was approved and 2Checkout is still reviewing the order. It becomes Paid automatically when 2Checkout completes it.
CANCELED Failed when nothing was charged; Voided when 2Checkout cancelled an authorised order after its review.
REFUND or REVERSED Refunded.
PENDING Stays Processing until 2Checkout decides.

Every step is written to the entry notes, and duplicate notifications never record a payment twice. When 2Checkout cannot be reached while a notification arrives, the add-on answers with an error so 2Checkout sends the notification again.

Refunds

Open a paid entry. The 2Checkout box on the right shows the status, the checkout type, the card, the amount, the order number and a link to the order in the 2Checkout control panel. Enter an amount and click Refund to refund part or all of the payment; the box tells you how much can still be refunded. A partial refund sets the entry to Partially Refunded, the rest to Refunded. Each button can only be used once, so a double click never refunds twice. Refunds you make in the 2Checkout control panel arrive by IPN and update the entry too.

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.

Subscriptions

Set the Transaction Type to Subscription, choose the recurring amount, the billing cycle (days, weeks, months or years) and the number of payments, or leave it at infinite to renew until cancelled. 2Checkout creates the subscription with the first order and renews it automatically; you do not need a cron job on your site to charge renewals.

  • Setup fee: added to the first payment only.
  • Trial: the first billing cycle is charged at the trial amount instead of the recurring amount, for example 5 dollars for the first month and 30 dollars after that. 2Checkout needs a first payment above zero, so a trial costs at least a small amount or comes with a setup fee.
  • Renewals: every renewal order arrives by IPN and is added to the entry as a subscription payment, once. A renewal that 2Checkout could not collect is reported as a failed subscription payment; 2Checkout retries it on its own schedule.
  • Cancel: the Cancel Subscription button of Gravity Forms disables the subscription at 2Checkout, so no further renewals are charged.
  • Daily check: once a day the add-on reads each active subscription from 2Checkout and closes the entry when the subscription expired or was cancelled in the control panel; a past-due subscription is noted on the entry.

Notifications

The add-on adds the Gravity Forms payment events to your notifications: Payment Completed, Payment Authorized (2Checkout review), Payment Failed, Payment Cancelled by 2Checkout, Payment Refunded, Subscription Created, Subscription Payment Added, Subscription Payment Failed, Subscription Canceled and Subscription Expired. Use them to send a receipt to the customer, to tell your team about a refund or to welcome a new member. With the feed option to send notifications only after the payment is approved, the normal form notifications wait until the payment is confirmed.

Test Mode and Going Live

Keep the mode on Test while you build the form. Test mode places 2Checkout test orders (or uses your 2Checkout sandbox account when you enter its credentials), and the entry box shows a Test mode badge. Use the test cards from the 2Checkout documentation to try approved and declined payments and 3-D Secure, try a refund and check that the IPN arrives. When everything works, enter your live merchant code, secret key and buy-link secret word, paste the IPN address into the live account, switch the mode to Live and make one small real payment that you refund afterwards.

Troubleshooting

The status says 2Checkout did not accept the merchant code or secret key.

Copy the merchant code and the secret key again from Integrations, Webhooks & API, without spaces, and save. Test and live accounts have different keys.

Entries stay Processing after a hosted payment.

The customer probably closed the browser before returning. Check that the IPN address is saved in the 2Checkout control panel and that a security plugin or firewall does not block requests to the address. The scheduled check twenty minutes later and the Refresh button on the entry also look the order up.

The card fields do not appear.

The feed must use card fields on the form and the form must contain the 2Checkout Card field. Your site must use HTTPS, and a content security policy must allow scripts from 2Checkout.

A note says an order does not match the expected amount, currency or reference.

The order in 2Checkout differs from what the form sent, so the entry was not changed. Check the order in the control panel before you mark anything as paid by hand.

A refund was refused.

2Checkout refunds only completed orders. An order that is still under review cannot be refunded yet; try again when it is Paid.

What happens without an active licence?

The settings show only the licence section and card payments are refused with a friendly message until the licence is active. Existing entries and their data are kept.

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.

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