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

Gravity Forms USAePay Payment Setup Guide

Updated 8 min read Gravity Forms Payments & Pricing
On this page
  1. Step 1: Install and License the Add-on
  2. Step 2: Connect Your USAePay Account
  3. Sandbox is the default
  4. Create an API key in USAePay
  5. Step 3: Add the USAePay Payment Field
  6. Step 4: Create a USAePay Feed
  7. One-time payments
  8. Subscriptions
  9. Billing information and conditional logic
  10. Step 5: Set Up Webhooks
  11. Step 6: Manage Payments From the Entry
  12. Test in Sandbox Before Going Live
  13. Get a USAePay sandbox account
  14. What to test
  15. Developer Filter: ge_usaepay_payjs_url
  16. Troubleshooting & FAQ
  17. The payment field says online payment is not available yet.
  18. Customers see “This payment cannot be processed in the selected currency.”
  19. A customer says the form was submitted twice.
  20. Renewals or ACH returns are not showing on the entry.
  21. A subscription could not be set up.
  22. Resource Hub

The Gravity Forms USAePay Payment Premium Add-on lets you take card and bank account (ACH / eCheck) payments on any Gravity Forms form through your USAePay merchant account. Customers type their card or bank details into secure fields hosted by USAePay, so those details never pass through or get stored on your website. One-time payments, authorize-and-capture and subscriptions on USAePay billing schedules are all supported, with capture, void and refund from the entry screen.

This guide covers connecting in Sandbox mode, the payment field, feeds, webhooks and testing before you go live.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.9 or higher
  • USAePay merchant account: with an API key, its PIN and the matching Public API Key. ACH (eCheck) needs check processing enabled on your account
  • Currency: US dollars (set Gravity Forms → Settings → Currency to USD)
  • HTTPS: run your site on https; USAePay webhooks need a public https address
  • GravityExtra license: the USAePay add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and License the Add-on

  1. Go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Open Forms → Settings → USAePay.
  3. Enter your license key in the Gravity Extra License section and save. The USAePay account settings appear once the license is active.

Step 2: Connect Your USAePay Account

Sandbox is the default

A new install always starts in Sandbox (testing) mode. Sandbox and Live keep separate keys, and a “Sandbox mode” notice appears on the settings page, the form and sandbox entries. The add-on only switches to Live (real payments) when you choose it, and it refuses to save Live mode until live keys are entered.

Create an API key in USAePay

In the USAePay console go to Settings → API Keys → Add API Key. Set a PIN and give the key the Sale, Auth Only, Capture, Void, Refund, Check and Customer Database permissions. Then copy three values into the matching Sandbox Keys (or Live Keys) section:

  • API Key: the key itself.
  • API PIN: the PIN you set on that key. It is used to sign every request and is never sent in plain text.
  • Public API Key (Pay.js): the public key of the same API key. It loads the secure payment fields in the browser and must belong to the API key above.

Click Save Settings. The add-on makes a read-only request to USAePay (no charge) and shows Connected to the USAePay sandbox (or Connected to USAePay (live)). If USAePay rejects the key and PIN, an error explains what to check.

USAePay account settings in Gravity Forms in Sandbox mode with API key, masked PIN, Public API Key and a Connected to the USAePay sandbox message
Sandbox mode selected and the sandbox keys connected.

Tick ACH (bank account) payments only if your ACH processor requires the customer’s driver’s license number and state.

Step 3: Add the USAePay Payment Field

Edit your form and add USAePay Payment from the Pricing Fields group. Your form also needs at least one product (or a Total field) so Gravity Forms can calculate the amount. On the live form USAePay fills it with its own card fields, plus bank account fields when ACH is enabled on the feed.

USAePay Payment field on a Gravity Forms registration form with card and bank account options, card number, expiry and CVV fields and a Sandbox mode notice
The payment field with card and ACH options, shown in Sandbox mode.

How card data stays off your site

Card or bank numbers are typed inside a secure frame served by USAePay (its Pay.js library), which returns a one-time payment key. Only that key, the method, the last four digits and the card brand reach WordPress; the entry stores a summary such as “Visa ending in 1111”. The Gravity Forms Credit Card field is not used.

When ACH is offered, the customer chooses Checking or Savings and must tick a box authorizing your business to debit the account. Payment errors appear on the field in plain language, such as “Your card has expired”.

Step 4: Create a USAePay Feed

Go to Form Settings → USAePay → Add New. Feeds can be created once the license is active and the keys for the current mode are saved.

One-time payments

Choose Products and Services as the transaction type and pick the payment amount (usually Form Total). Then set the USAePay Payment Options:

  • Payment Methods: Credit / debit card, Bank account (ACH / eCheck), or both. With both, customers choose on the form.
  • Card Payments: Charge immediately (sale) or Authorize only, capture later from the entry. ACH payments are always processed as a sale.
  • USAePay Receipt: ask USAePay to email its own receipt to the mapped email address.
USAePay feed with Products and Services transaction type, card and ACH payment methods, charge immediately option and USAePay receipt checkbox
A one-time payment feed accepting cards and ACH.

Subscriptions

Choose Subscription to bill on a schedule. The add-on creates a USAePay customer, saves the card or bank account used for the first payment and creates a billing schedule in USAePay, so renewals are charged by USAePay itself.

  • Billing Cycle: weeks (1–12), months (1–12) or years (1–3). USAePay schedules do not run daily.
  • Recurring Times: a fixed number of payments or infinite (until cancelled).
  • Setup Fee: charged together with the first payment.
  • Trial: with a paid trial the trial amount is charged today. With a free trial and no setup fee, the card is verified with a temporary authorization that is released right away; bank accounts need a payment due today, so they cannot start a free trial without a setup fee.
  • Monthly and yearly renewals are kept on day 1–28 of the month, so the date exists in every month.
USAePay subscription feed with monthly billing cycle, infinite recurring times, registration fee as setup fee and card and ACH payment methods
A monthly membership with a registration fee charged on the first payment.

Billing information and conditional logic

Map First Name, Last Name, Email, Phone, Company and the address parts under Billing Information. They become the USAePay billing address (US state names are converted to two-letter codes), the receipt email and the subscription customer. Use Conditional Logic if only some submissions should be charged.

Step 5: Set Up Webhooks

Webhooks keep entries up to date with subscription renewals, ACH returns, and voids, captures and refunds made in the USAePay console.

  1. Copy the Webhook URL from the add-on settings. It looks like https://yoursite.com/?callback=gfusaepayaddon.
  2. In the USAePay console go to Settings → Webhooks → Add Webhook and paste the URL.
  3. Select the transaction.* and ach.* events and set Signature to “Signature Key”.
  4. Copy the signature key into the Webhook Signature Key field of the matching environment and save.
Webhooks section of the USAePay add-on settings with instructions and the read-only webhook URL
The webhook URL to register in the USAePay console.

Unsigned or wrongly signed webhooks are rejected and change nothing, and the same event is never applied twice. Until a signature key is saved, all webhooks are rejected.

Step 6: Manage Payments From the Entry

Paid entries show a USAePay Payment box with the status, method, transaction key, reference number, auth code, order ID and a console link. Subscription entries add the billing schedule, interval, first renewal date and customer key.

USAePay Payment box on a Gravity Forms entry in Sandbox mode with status Paid, Visa ending in 1111, transaction key, reference number, auth code, order ID and a Refund / Void button
A paid entry with the Refund / Void action.
Entry status Actions in the box What happens in USAePay
Authorized Capture payment, Void authorization Captures the authorized amount, or releases it so the customer is not charged
Paid Refund / Void with an amount A full refund of a payment that has not settled yet is voided; otherwise the amount is refunded. Partial refunds work once the payment has settled, usually the next business day
Active subscription Gravity Forms Cancel Subscription button Deletes the billing schedule so no further renewals are charged

Each action asks you to confirm first and is only available to users who can edit entries. The result is added to the entry notes.

Test in Sandbox Before Going Live

Get a USAePay sandbox account

  1. Open the USAePay developer portal at developer.usaepay.com, choose Register for an account and complete the form.
  2. In the portal sidebar click Request Test Account, fill in every field and submit. USAePay processes requests during US Pacific office hours, so allow a few hours (longer at weekends).
  3. When the email arrives, log in at sandbox.usaepay.com and create an API key as described in Step 2.
  4. For webhooks, add a webhook in the sandbox console that points to a public https copy of your site, such as a staging site.

What to test

USAePay publishes sandbox card numbers on its Test Cards page (checked October 2026), for example 4000100011112224 for an approval and 4000300611112224 for an “Insufficient funds” decline. Use the expiry date and CVV listed on that page. The same page links to USAePay’s test data for ACH.

  • An approved card payment and a declined card.
  • Authorize only, then Capture payment from the entry.
  • A same-day full refund (voided) and a partial refund after settlement.
  • An ACH payment, if you offer it.
  • A subscription: check the billing schedule in the console, then cancel it from the entry.
  • A console webhook reaching your staging site.

When everything works, select Live (real payments), enter your live keys and webhook signature key, save, and make one small real payment that you refund afterwards.

Developer Filter: ge_usaepay_payjs_url

The add-on loads Pay.js from https://sandbox.usaepay.com/js/v2/pay.js in Sandbox mode and https://www.usaepay.com/js/v2/pay.js in Live mode. The ge_usaepay_payjs_url filter receives $url and $env (sandbox or live) and returns the script address. Use it if USAePay gives you a different Pay.js address. A matching ge_usaepay_api_base_url filter changes the REST API base address.

functions.php
PHP
// Load Pay.js from the address USAePay support gave you (sandbox only)
add_filter( 'ge_usaepay_payjs_url', function( $url, $env ) {
    if ( 'sandbox' === $env ) {
        return 'https://www.usaepay.com/js/v2/pay.js';
    }
    return $url;
}, 10, 2 );

Troubleshooting & FAQ

The payment field says online payment is not available yet.

The Public API Key for the current mode is missing. Open Forms → Settings → USAePay, check which mode is selected and fill in all keys for that mode.

Customers see “This payment cannot be processed in the selected currency.”

The add-on processes US dollars only. Set Forms → Settings → Currency to U.S. Dollar.

A customer says the form was submitted twice.

A second charge with the same payment key is refused before anything reaches USAePay. If the connection times out, the customer is asked to contact you before trying again. Check the USAePay console before taking a new payment.

Renewals or ACH returns are not showing on the entry.

Check that the webhook URL is registered in the console for the same environment, that the transaction.* and ach.* events are selected and that the Webhook Signature Key matches. Turn on Forms → Settings → Logging for a detailed trace.

A subscription could not be set up.

If any step after the first charge fails, the add-on voids the charge and removes the customer it created, and the customer is told they have not been charged. Check that your API key has the Customer Database permission.

Resource Hub

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