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

Gravity Forms Recurly Premium Add-on Setup Guide

Updated 6 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Get your Recurly API key and region
  4. The settings page
  5. Your region, your key and the test button
  6. Add a feed to your form
  7. The account
  8. The subscription
  9. Only send when you want to
  10. On the front end
  11. What is saved on the entry
  12. Notifications and events
  13. Retries never double-create
  14. Security and privacy
  15. Troubleshooting

Video walkthrough

Gravity Forms Recurly Add-On Setup Guide: Accounts & Subscriptions (WordPress Side)
Video setup guide: Gravity Forms Recurly Watch on YouTube

The Gravity Forms Recurly Premium Add-on connects your Gravity Forms to Recurly so that every submission becomes a Recurly account, and, when you want it, a running subscription. When someone fills in a plan sign-up, a sales enquiry, an upgrade request or an event registration, the add-on creates (or reuses) a Recurly account for that submission and can then start a subscription for it: a plan code, a currency, a quantity and any add-ons, all mapped from your form.

Everything happens on your own Recurly site through the Recurly v3 REST API, with your own API key. The add-on never blocks your form: the visitor sees your normal confirmation, and the account and subscription are created quietly on your server afterwards. A failed call is written to the entry as a clear note rather than shown to the person filling in the form.

What you need

  • WordPress with Gravity Forms 2.9 or newer.
  • PHP 7.4 or newer.
  • An active license key for this add-on.
  • A Recurly account, and the plans you want to subscribe people to already set up in your Recurly catalog.

If Gravity Forms is missing or older than 2.9, the add-on shows a notice in the WordPress admin and does nothing else, so a form is never left half connected.

Get your Recurly API key and region

The add-on signs in to the Recurly API with your own credentials, using HTTP Basic authentication: your API key is the user name and the password is empty. You create the key yourself, and it is entirely self-serve.

Sign in to Recurly, open Integrations, then API Credentials, and choose Add Private API Key. Copy the key and keep it somewhere safe. You also need to know your region: most sites are on the United States data centre (v3.recurly.com); choose Europe (v3.eu.recurly.com) only if your Recurly account is on the EU data centre. There is nothing to approve with us and no partner onboarding; the key belongs to your Recurly account.

The settings page

Install and activate the add-on like any plugin, after Gravity Forms. Then open Forms → Settings → Recurly. This one page holds the license key and your Recurly connection.

The Recurly settings page in Gravity Forms: license key, region, API key and a test connection button that lists plan codes
The settings page: your region, your API key and a test button.

Your region, your key and the test button

Choose your region (United States or Europe) and enter the API key you generated. The key is stored encrypted at rest, so the plain value is never left sitting in the database. After the field is saved it is shown masked, and you can replace it at any time. If you would rather keep the key out of the database entirely, define the GFRCL_API_KEY constant in wp-config.php and the add-on uses that instead.

Next to the key is a Test connection button. Press it and the add-on asks Recurly for your plans and lists a few of their codes. A green result means the region and key talk to Recurly; a clear message tells you if the key is wrong. Run the test once whenever you paste a new key, so you learn about a typo here and not from a form that quietly fails.

Add a feed to your form

Open the form you want to connect, go to Settings → Recurly on that form, and add a feed. A feed maps the form fields to the Recurly account and, optionally, to a subscription.

The Recurly feed in Gravity Forms: account email, name, company and phone, and an optional subscription with plan code, currency, quantity and add-ons
The feed: map the account and, if you want, the subscription with merge tags.

The account

The account email is the one required field, because an account without a contact is rarely useful. Map it to your email field with a merge tag, for example {Email:2}. Each submission is given a unique, deterministic account code tied to the entry and feed, so the account is created once and reused on a resend rather than duplicated. The first name, last name, company and phone are optional and are mapped the same way; the phone is stored on the account address.

The Update existing option decides what happens when the account for this entry already exists, for example on a resend. Leave it on and the account is updated with the mapped fields; turn it off and the existing account is left exactly as it is.

The subscription

The subscription section is optional. Leave it off and the feed syncs the account only. Turn on Start a subscription for this account and give a plan code: the code of a plan from your Recurly catalog, for example basic. It can be a fixed code or a merge tag, so a form choice can pick the plan; use the :value modifier, for example {Plan:5:value}.

The currency is the three-letter code the subscription is billed in, for example USD or EUR (it defaults to USD). The quantity sets how many of the plan to subscribe (it defaults to 1, and a merge tag such as a seats field works too). Add-on codes let you attach extra charges: list them one per line or comma separated, each as code or code:quantity, for example extra-seats:3. The subscription is created with Recurly’s subscriptions endpoint, referencing the account by its code.

Only send when you want to

Each feed has conditional logic, so you can send to Recurly only when a rule is met, for example only when a plan is chosen, or only for a particular enquiry type. You can also add more than one feed to the same form to route different submissions to different plans.

On the front end

Your visitors see nothing new. They fill in your form and get your normal confirmation; the work with Recurly happens quietly on your server afterwards.

A front-end Gravity Form with a plan choice and seats, used to create a Recurly account and start a subscription
A plan sign-up form as a visitor sees it; the work with Recurly happens after the confirmation.

What is saved on the entry

After a submission is processed, the Gravity Forms entry keeps the Recurly account reference and, when a subscription was started, the Recurly subscription reference, so you can trace either straight from the entry. A success note records exactly what was done, and the ids are available as merge tags — {recurly_account_code}, {recurly_account_id}, {recurly_account_url}, {recurly_subscription_id} and {recurly_subscription_url} — for your notifications.

A Gravity Forms entry screen showing the Recurly note with the account reference and the subscription reference
The entry note with the account and subscription references.

Notifications and events

The add-on adds two notification events, Recurly account synced and Recurly sync failed, so you can email your team when an account and subscription are created, or when something needs a look. The Recurly merge tags work in those notifications, so a message can carry the new account code or the subscription id.

Retries never double-create

If you resend a feed, or Gravity Forms retries one, the add-on will not create a second account or a second subscription. The account is reused by its deterministic account code tied to the entry and feed, and the subscription is created with a matching idempotency key. If an earlier try created the subscription but the reply was lost, the add-on finds it again on the account instead of making a new one, and a feed that is already running for an entry is never sent twice.

Security and privacy

The API key is encrypted at rest with AES-256-GCM and is never shown again, never written to an entry note and never put in a log. Every request uses HTTPS with certificate verification on, a redirect is never followed so the credentials cannot leak to another host, and the add-on only ever contacts the Recurly v3 REST API of your chosen region (v3.recurly.com or v3.eu.recurly.com). The connection test and the feed both run under a capability and nonce check, so only your own staff can trigger them.

Troubleshooting

If a submission does not reach Recurly, open the entry and read the note: it says exactly which step stopped and why, without ever printing your key. A wrong key or region shows up straight away in the Test connection result. An invalid email in the form means no request is made and the entry says so. If a plan code is wrong, Recurly’s own message is passed back in the note so you can fix the code in the feed. Because a failed call never blocks the form, your visitor always gets your confirmation, and you keep a clear record of anything to retry.

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