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

Gravity Forms Multi-Account Payment Router Add-on Setup Guide

Updated 9 min read Gravity Forms Payments & Pricing
On this page
  1. Step 1: Activate Your License
  2. Step 2: Add Your Payment Accounts
  3. Step 3: Register the Webhook for Each Account
  4. Step 4: Create a Payment Router Feed
  5. Default account and routing rules
  6. Route by billing country
  7. Incomplete rules are refused when you save
  8. Amount, billing and conditions
  9. Step 5: Take Payments and Issue Refunds
  10. Abandoned checkouts
  11. Security, PCI ScopePayment Router Report
  12. Security, PCI Scope and Safety Checks
  13. Moving from PayPal Standard
  14. Developer Hooks
  15. Troubleshooting & FAQ
  16. Resource Hub

The Gravity Forms Multi-Account Payment Router Premium Add-on sends every Gravity Forms payment to the right Stripe or PayPal account. Run several brands, branches or organizations from one WordPress site, connect as many accounts as you need, and route each payment by a field value (such as location or brand), the billing country, the order total or the currency, with a default account as the fallback.

Customers pay on secure hosted checkout pages: Stripe Checkout for one-time payments and subscriptions, and PayPal Checkout for one-time payments. Each entry remembers the account that took the payment, so refunds, renewals and cancellations always use that same account, even if you change your rules later.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher with the OpenSSL extension (AES-256-GCM) for encrypted key storage
  • Gravity Forms: Version 2.9 or higher
  • Payment accounts: One or more Stripe accounts and/or PayPal accounts with a REST app (client ID and secret)
  • Add-on: Installed and activated with an active GravityExtra license key

Step 1: Activate Your License

Upload and activate the plugin, then go to Forms → Settings → Payment Router. Enter your GravityExtra license key and click Activate License. New checkouts and admin features require an active license. Webhooks and customer returns keep working without one, so payments already in progress are never lost.

GravityExtra License panel on the Payment Router settings page
Activate your license under Forms → Settings → Payment Router.

Step 2: Add Your Payment Accounts

Use the Add Account form below the accounts table. Give each account a clear name (for example the branch or brand), choose the gateway and mode, and paste its credentials.

Add Account form with gateway, account name, mode, default currency, keys and status
Adding a Stripe account. The fields change to Client ID, Client secret and Webhook ID for PayPal.
Field Stripe PayPal
Gateway Stripe (cannot be changed after the account is created) PayPal
Mode Test / Sandbox or Live Test / Sandbox or Live
Default currency For your reference. Payments are charged in the currency of the form. Same
Credentials Publishable key, Secret key (sk_ or rk_ key for the selected mode) Client ID and Client secret of your PayPal REST app
Webhook value Webhook signing secret (starts with whsec_) Webhook ID
Status Enabled: this account can receive payments Same

Keys are checked when you save, so a test key cannot be used in live mode by mistake. Secret values are stored encrypted and are only ever shown masked. When editing an account, leave a secret field blank to keep the current value.

Edit Account form showing masked secret key and webhook signing secret
Editing an account: saved secrets are masked and kept unless you type a new value.

Step 3: Register the Webhook for Each Account

Every account gets its own webhook URL in the Payment Accounts table, in the format https://your-site.com/wp-json/ge-payrouter/v1/webhook/{gateway}/{account_id}. An account shows Ready once it is enabled and all required keys, including the webhook value, are saved.

Payment Accounts table with three accounts, live and test badges, ready status, webhook URLs and webhook setup help
Three accounts, each with its own webhook URL. Expand Webhook setup for the instructions.

The Webhook setup help below the table lists exactly what to configure:

Gateway Where to add the URL Events to select
Stripe Stripe › Developers › Webhooks: add an endpoint with the account’s webhook URL, then paste the endpoint’s signing secret (whsec_…) into the account. checkout.session.completed, checkout.session.async_payment_succeeded, checkout.session.expired, invoice.paid, invoice.payment_failed, customer.subscription.deleted, charge.refunded
PayPal PayPal Developer Dashboard › your app › Webhooks: add the account’s webhook URL, then copy the Webhook ID into the account. CHECKOUT.ORDER.APPROVED, PAYMENT.CAPTURE.COMPLETED, PAYMENT.CAPTURE.REFUNDED

One endpoint per account

Create a separate webhook endpoint in each Stripe or PayPal account, using that account’s own URL. A notification that verifies for one account can never change a payment recorded on another account.

Update for 1.1.0: add the event checkout.session.expired to each Stripe webhook endpoint. Stripe sends it when a customer leaves the hosted checkout and the session times out, and the add-on uses it to set that entry to Cancelled. Existing endpoints keep working without it, but unpaid entries then stay in Processing until the 48-hour check marks them Failed.

Step 4: Create a Payment Router Feed

Open the form, go to Settings → Payment Router and click Add New. Choose the Transaction Type: Products and Services for one-time payments, or Subscription (Stripe accounts only).

Payment Router feeds list with default account and number of rules
The feed list shows each feed’s default account and number of routing rules.

Default account and routing rules

Rules are checked from top to bottom. The first rule that matches and whose account is ready to accept payments is used. If no rule matches, the default account is used. Use the arrow buttons to change the order.

Payment Routing section with default account and three routing rules
Dallas bookings go to the Dallas Stripe account, online retreats and EUR payments to PayPal, everything else to Austin.
Rule type Options Example
Field value A form field with is, is not, contains or starts with (case-insensitive) Studio *is* Dallas → Dallas Studio
Billing country An Address field with is or is not and a country chosen from a list Billing country is France → Europe Account
Order total A From and/or To amount From 1000 → Head Office account
Currency A three-letter currency code (the form’s currency) EUR → Europe Retreats

If a matching rule points to an account that is disabled or missing keys, that rule is skipped and the next one is tried. Subscription feeds only use Stripe accounts.

Route by billing country

Choose Billing country as the rule type, pick the Address field of your form and the country, and set is or is not. The rule compares the country the customer selected in that Address field. If the form submits no country, a country rule never matches (even with is not), so the next rule or the default account is used. Rules you saved before 1.1.0 keep working unchanged. The form needs an Address field with the country shown.

Payment Routing section with two billing country rules: United States to the Uptown account and France to the Downtown account
Billing country rules: United States to one account, France to another, everything else to the default account.

Incomplete rules are refused when you save

If a rule is missing something it needs (no account, no address field or country, no amount, a minimum higher than the maximum, or no 3-letter currency code), the feed is not saved. A message names each incomplete rule, for example Rule #3 (Order total): enter a minimum or a maximum amount., and everything you typed stays on screen so you can fix it and save again. Before 1.1.0 a rule without an account was dropped silently.

Amount, billing and conditions

Select the Payment Amount (usually Form Total) and map the Email field so the customer’s email is prefilled on the Stripe Checkout page. For subscriptions, set the billing cycle and an optional Trial Period (days) of up to 730 days (Stripe only). Use Conditional Logic to run the feed only when needed. Use only one payment feed per form submission.

Products and Services settings with payment amount, billing information and conditional logic
Payment amount, billing email and feed conditions.

Step 5: Take Payments and Issue Refunds

When a customer submits the form, they are redirected to the hosted Stripe or PayPal page for the routed account. After payment they return to your form’s confirmation, and the entry is marked as paid.

Booking form with studio selection, package and total before redirecting to payment
A Dallas booking is routed to the Dallas Studio Stripe account.

The Payment Account panel on the entry shows the account, gateway, mode and payment reference. For completed one-time payments, Refund Payment issues a full refund from the account that took the payment. Add the Payment Account column to the entry list to see where each payment went.

Payment Account entry panel with account, gateway, live mode, reference and refund button
Refunds are always issued from the account that took the payment.

Subscription renewals, failed payments and cancellations arrive through each account’s webhook and are recorded on the correct entry.

Abandoned checkouts

An entry stays Processing while the customer is on the hosted checkout page. If the customer cancels and comes back to your site, or Stripe reports checkout.session.expired, the entry becomes Cancelled and a note is added. An entry that is still Processing about 48 hours after the checkout was started (checked once a day) becomes Failed. A paid entry is never changed by this. If the customer completes the payment later the entry becomes Paid again.

Security, PCI ScopePayment Router Report

Go to Forms → Payment Router Report to see how much each account has taken. For the chosen date range the table lists every account with its gateway and mode, the number of paid entries and the total by currency. Accounts with no payments show 0, and an account paid in several currencies gets one line per currency. The numbers come from your Gravity Forms entries, so nothing is requested from Stripe or PayPal, and refunded entries are not counted. The page is available to users who can edit Gravity Forms settings.

Payment Router Report with a date range, Apply and Export CSV buttons and a table of accounts with paid entries and totals per currency
The Payment Router Report: paid entries and totals per account and currency.
  • Date range: set From and To and click Apply. The default is the last 30 days.
  • Export CSV: downloads the table for the chosen range, one line per account and currency, with the columns account_id, account, gateway, mode, currency, paid_entries and total.

Security, PCI Scope and Safety Checks

  • Hosted checkout: card details are entered on Stripe or PayPal, never on your site, which keeps your PCI scope minimal.
  • Encrypted credentials: secret keys, client secrets and webhook secrets are encrypted with AES-256-GCM using a key derived from your WordPress salts and are always displayed masked.
  • Verified webhooks: Stripe signatures are checked with the account’s signing secret, and PayPal notifications are verified with PayPal using that account’s credentials. Duplicate notifications are ignored.
  • Hidden broken forms: if none of a feed’s accounts can accept payments, the form is hidden from visitors and administrators see a note explaining why.
  • Protected subscriptions: an account with active subscriptions cannot be disabled, deleted or switched to another mode.

Moving from PayPal Standard

PayPal is retiring PayPal Payments Standard. The PayPal Migration page in the Forms menu lists every form that still has a PayPal Standard feed, with a button to set up or review routing. Nothing is changed automatically: create a PayPal account in the router, add a Payment Router feed with the same amount, deactivate the PayPal Standard feed and place a sandbox test payment. Existing PayPal Standard subscriptions keep billing through PayPal, so keep the old add-on active until they end.

Developer Hooks

Filter Arguments Purpose
ge_payrouter_stripe_session_params $params, $account, $feed, $form, $entry Modify the Stripe Checkout Session parameters before the session is created.
ge_payrouter_webhook_failure_limit $limit (default 60) Number of failed webhook attempts from one IP within 10 minutes before further requests are refused.
functions.php
PHP
// Let customers enter promotion codes on Stripe Checkout for one account.
add_filter( 'ge_payrouter_stripe_session_params', function( $params, $account, $feed, $form, $entry ) {
    if ( 'Austin Studio' === $account[ 'label' ] ) {
        $params[ 'allow_promotion_codes' ] = 'true';
    }
    return $params;
}, 10, 5 );

Troubleshooting & FAQ

Visitors see “Online payment is temporarily unavailable for this form.”

None of the accounts used by the feed can accept payments: an account is disabled, a key or webhook value is missing, or the license is inactive. Open Forms → Settings → Payment Router and make sure the accounts show Ready.

An account shows “Not ready” after changing hosts or security keys.

Secrets are encrypted with your WordPress salts. If the salts change, saved secrets can no longer be read. Edit the account and enter the keys again.

Payments stay in “Processing”.

Check that the account’s webhook is registered with the events listed above and that the signing secret (Stripe) or Webhook ID (PayPal) saved in the account matches the endpoint. A customer who abandoned the checkout is set to Cancelled (with checkout.session.expired on the Stripe webhook) and to Failed after about 48 hours.

Can I use it together with the official Stripe or PayPal add-ons?

Yes. The router only acts on forms that have a Payment Router feed. Use one payment feed per form.

What happens to old payments if I change my rules?

Nothing. Each entry stores the account that took the payment, and refunds, renewals and cancellations always use that account.

Can PayPal accounts take subscriptions?

No. Subscriptions use Stripe Checkout. PayPal Checkout is used for one-time payments.

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