IntegrationsGravity Forms

How to Integrate PayLexer with Gravity Forms

Connect PayLexer to Gravity Forms to take one-time payments and subscriptions on any form with any payment gateway, using the PayLexer for Gravity Forms add-on.

Connect PayLexer to Gravity Forms to take payments and subscriptions on your forms across multiple payment gateways.

Overview

Gravity Forms is a WordPress plugin for building forms, including order, donation and sign-up forms. PayLexer for Gravity Forms is PayLexer's own add-on for it. It adds a Payment Method field that lists every gateway you connect in PayLexer, such as Stripe, PayPal and more, so customers choose how to pay right on your form.

Gravity Forms needs two PayLexer plugins: the PayLexer plugin, which connects your site to PayLexer, and the PayLexer for Gravity Forms add-on, which brings your gateways into Gravity Forms. The add-on never sees or stores gateway credentials.

Supported Features

  • One-time payments - Customers pay the form total in a single transaction on the gateway's secure hosted page.
  • Subscriptions - Bill a recurring amount with a billing cycle, a limit on the number of payments, a setup fee and a free trial. The gateway bills every renewal.
  • Payment Method field - One field lists every gateway that accepts your Gravity Forms currency, with its logo, and updates by itself when you connect or remove a gateway.
  • Notifications wait for payment - The form's Form is submitted notifications, and feeds such as Mailchimp or Zapier set to process only when payment is received, are sent once the payment is confirmed.
  • Entries update automatically - Each entry is marked Paid, Failed, Active, Cancelled or Refunded as it happens, with a PayLexer Details box showing the gateway, transaction ID and PayLexer order ID.
  • Cancel subscriptions from Gravity Forms - Click Cancel Subscription on the entry to cancel it at the gateway.
  • Multiple payment gateways and websites - Connect and manage several gateways and websites from one PayLexer account.
  • Test and Live mode per gateway - Test payments safely without real charges before going live.

Before You Start

Make sure you have the following before starting:

  • Admin access to your WordPress site.
  • Gravity Forms 2.7 or later, installed and active. Gravity Forms is a paid plugin. Get Gravity Forms →
  • The email address you want to use for PayLexer. If you don't have a PayLexer account yet, one is created for you while you connect.
  • A payment gateway account, such as Stripe or PayPal. If you're new to PayLexer, you configure it after connecting your website. Choose and configure a gateway →

Setup Journey

If you haven't configured PayLexer yet, follow these steps in order before continuing:

Getting Started

Complete the PayLexer setup. Setup guide →

Connect Your Website

Install the PayLexer plugin and select Connect Account. Connect your site →

Configure Payment Gateway

Choose and configure your gateway. Gateway docs →

Platform Integration

You're here! Continue below.

Test Transactions

Verify everything works. Test guide →

Integration Steps

You no longer add your website in PayLexer first or copy a Client ID and Site Key. The Connect Account button in the PayLexer plugin creates or signs in to your PayLexer account and adds your website automatically.

Install the PayLexer WordPress Plugin

  • Go to WordPress Admin → Plugins → Add New Plugin.
  • Search for PayLexer, then click Install Now.
  • Click Activate to enable the plugin on your site.

Connect Your PayLexer Account

  • In the WordPress sidebar, go to PayLexer. The General page opens with the Connect to PayLexer card.
  • Click Connect Account and enter your email address. What happens next depends on your account:
    • New to PayLexer: your account is created and your website is connected.
    • Existing account: enter your password to sign in and connect.
    • Already signed in on this browser: you skip the password and go to the authorization page. Check the account and website, then click Connect Account and Authorize.

You only connect once. Every gateway you configure in PayLexer runs through this connection.

Prefer to start from PayLexer? Add your website from Websites → Add Website, then finish with Connect Account in the plugin. See both ways to connect →

Install the PayLexer for Gravity Forms Add-on

  • On the PayLexer General page, find PayLexer for Gravity Forms under Available Add-ons.
  • Click Install, then click Activate.

You can also install it from Plugins → Add New Plugin by searching for PayLexer for Gravity Forms.

Check the Connection

  • In WordPress, the card on the PayLexer General page changes to Connected to PayLexer with the status Active, and shows the email of your PayLexer account.
  • On the same page, Gravity Forms shows as Activated under Supported Integrations, and PayLexer for Gravity Forms shows as Activated under Available Add-ons.
  • In the PayLexer dashboard, go to Websites. Your website appears in the table with the status Connected.

On failure: Click Connect Account again and check the email and password you entered. Your website must show as Connected before payments can be processed.

Enable PayLexer Gateways in Gravity Forms

  • Go to Forms → Settings → PayLexer. Each gateway connected in PayLexer has its own section.
  • Open a gateway, switch Enabled on or off, and set Environment to Test or Live.
  • Click Save Settings.

Until you first save this page, every gateway is on and set to Test. After that, gateways you connect in PayLexer later start switched off here.

Add the Payment Method Field to Your Form

  • Open your form in the Gravity Forms editor. It needs at least one Product field, so there's a total to charge.
  • Under Pricing Fields, drag Payment Method onto the form.
  • Click Save Form.

The field lists every gateway you switched on that accepts your Gravity Forms currency. Customers pick one before they submit.

Create a PayLexer Feed

  • In the form editor, go to Settings → PayLexer, then click Add New.
  • Enter a Name and choose the Transaction Type: Products and Services for one-time payments, or Subscription.
  • Under Billing Information, map the form's Email field. Map name, phone and address fields too if your form has them.
  • Click Save Settings.

PayLexer now handles payment processing for this form. Repeat the last two steps for each form that takes payments.

Selling Subscriptions

Choose Subscription as the feed's Transaction Type to bill customers on a schedule. The gateway bills every renewal, PayLexer reports it, and the add-on records each payment on the entry.

  • Recurring Amount - The form total or a single product field.
  • Billing Cycle - How often the customer is charged, for example every 1 month.
  • Recurring Times - How many payments to take, or infinite.
  • Setup Fee - A one-time fee taken with the first payment, from a product field.
  • Free Trial (days) - Days before the first charge. Leave it empty for no trial.
  • Only gateways that can bill subscriptions are offered on a form whose feeds are all subscriptions. If the chosen gateway can't run a trial or charge a setup fee, the customer sees a message and can choose another payment method.
  • Click Cancel Subscription on the entry to cancel it at the gateway, so no further renewals are charged.
  • Renewals, failed renewals and cancellations made at the gateway or in PayLexer update the entry automatically.

Subscriptions keep billing at the gateway even if you turn off the add-on, but Gravity Forms can't record renewals while it's off. Cancel active subscriptions before removing the add-on.

Customize Gateway Settings

Each gateway's section under Forms → Settings → PayLexer has two settings:

  • Enabled - Switch the gateway on to list it in the Payment Method field, or off to hide it from every form.
  • Environment - Choose Test to use the gateway's sandbox with your Test credentials, or Live to process real payments with your Live credentials.

A gateway that doesn't accept your Gravity Forms currency (Forms → Settings → Currency) is marked on this page and hidden from customers.

Test Mode

PayLexer supports full testing without real charges through each gateway's Environment setting.

How Test Mode Works

  1. Go to Forms → Settings → PayLexer.
  2. Open the gateway and set Environment to Test.
  3. Click Save Settings.

When Environment is Test:

  • PayLexer uses your Test credentials from the Payment Gateway Configuration page.
  • Gravity Forms entries are created normally.
  • Payments are processed in test mode.

When Environment is Live, PayLexer uses your Live credentials instead.

Payment Flow Overview

A new PayLexer order is created for every payment attempt, including each subscription renewal.

Next Steps: Test Transactions

After setting up your form, check the full payment flow before going live.

  • Basic testing: Set each gateway's Environment to Test above and submit your form without real charges.
  • Advanced testing (subscriptions, refunds, multi-gateway): Follow the dedicated guide. Test Transactions & Platform Integration →

Troubleshooting

Best Practices

  • Always test with Test credentials before switching to Live.
  • Enable webhooks for better reliability and real-time payment event syncing.
  • Set other feeds, such as Mailchimp or Zapier, to Process only when payment is received so they wait for the payment too.
  • Run one small real payment after going live to confirm everything works end to end.

Final Checklist

Before going live, confirm all of the following:

  • The Connected to PayLexer card shows Active in WordPress
  • Your website shows as Connected in the PayLexer Websites table
  • Gravity Forms shows as Activated under Supported Integrations
  • PayLexer for Gravity Forms shows as Activated under Available Add-ons
  • At least one gateway is added to your website
  • At least one gateway is switched on under Forms → Settings → PayLexer
  • Your form has a Product field, a Payment Method field and an active PayLexer feed
  • Payment gateway tested successfully with Environment set to Test
  • Live credentials added (not just test)
  • Environment set to Live on every gateway under Forms → Settings → PayLexer

FAQs

Still Have Questions?

Check the FAQs above first. If your question isn't covered there, choose the option that fits:

For settings and advanced configuration, see the Gravity Forms documentation.