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

Gravity Forms Bambora 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 Bambora Account
  3. Sandbox and Live mode
  4. Enter your credentials
  5. Step 3: Add the Bambora Card Field
  6. Step 4: Create a Bambora Feed
  7. Products and Services (one-time payments)
  8. Subscriptions (Bambora Recurring Billing)
  9. Step 5: Set Up Renewal Notifications (Webhooks)
  10. Step 6: Manage Payments From the Entry Screen
  11. Test in Sandbox Before Going Live
  12. Developer Filter: gf_bambora_allowed_hosts
  13. Troubleshooting & FAQ
  14. Customers see “Payments are temporarily unavailable”.
  15. The card boxes do not appear on the form.
  16. Can a customer be charged twice by clicking submit again?
  17. Subscription renewals do not appear on the entry.
  18. Cancel Subscription shows an error note.
  19. Resource Hub

The Gravity Forms Bambora Payment Premium Add-on lets you take card payments and recurring payments through your Bambora merchant account, right inside a Gravity Forms form. Customers type their card details into secure fields that are loaded from Bambora, so card numbers never pass through your WordPress site.

Bambora’s North American business now operates as Worldline North America and is owned by Shift4. Your existing Bambora merchant account, Merchant ID and passcodes keep working, and this add-on already uses the new gateway addresses that replace the older na.bambora.com ones by December 31, 2026.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher, served over HTTPS
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.9 or higher
  • Bambora merchant account: A Bambora / Worldline North America account with Payment API access. Use a free test account first.
  • Currency: CAD or USD. The Gravity Forms currency must match the currency of your Bambora account.
  • GravityExtra license: The Bambora 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 → Bambora.
  3. Enter your license key in the Gravity Extra License section and save. The Bambora settings appear once the license is active.

Step 2: Connect Your Bambora Account

Sandbox and Live mode

A fresh install starts in Test (sandbox) mode, and you switch to Live yourself when you are ready. Bambora has no separate sandbox server: a test account is its own merchant account with its own Merchant ID and passcodes. The settings page therefore has separate Test account and Live account sections. While Test is selected, a yellow “Sandbox mode is ON” notice is shown at the top of the settings.

Enter your credentials

  • Merchant ID: the 9-digit number shown at the top of the Bambora merchant portal.
  • Payment API passcode: in the portal, open administration → account settings → order settings, find Payment Gateway → Security/Authentication, generate the API access passcode and click Update at the bottom of that page.
  • Recurring Billing API passcode (optional): a separate passcode that is only needed to cancel subscriptions from Gravity Forms. Look for it in the recurring billing part of the portal configuration.
  • Account currency: CAD or USD. Each Bambora account settles in one currency, and it must match Forms → Settings → Currency.

Click Save Settings. The add-on sends a read-only test request to Bambora and shows “Connected. Bambora accepted these credentials” when the passcode works. Nothing is charged. If the passcode is wrong, the field shows “Bambora rejected these credentials”. Passcodes are masked and never written to entries or emails.

Bambora settings in Gravity Forms with Test sandbox mode selected, Merchant ID, masked Payment API passcode and a Connected message
Forms → Settings → Bambora in sandbox mode with a connected test account.

New gateway addresses are already built in

The add-on uses the new api.bam.shift4api.net and libs.bam.shift4api.net addresses by default. Leave the Advanced: gateway endpoints fields empty. They exist only in case the gateway changes its addresses again, and they accept https addresses on bam.shift4api.net or na.bambora.com only.

Step 3: Add the Bambora Card Field

Open your form in the editor and add the Bambora Card field from Pricing Fields, together with your product fields and a Total field. The Bambora Card field shows a “Name on card” box plus card number, expiry and security code boxes.

In plain words, here is how the card is kept off your site. The three card boxes are small secure windows loaded from Bambora / Worldline, not normal form inputs. When the customer clicks submit, Bambora turns the card into a one-time code called a token. Only that token, which expires after a few minutes and can be used once, is sent to WordPress. Your site never sees or stores the card number, so your PCI scope stays at the simplest level (SAQ A).

Gravity Forms class pass payment form with name, email, billing address, total and the Bambora Card field with secure card number, expiry and security code boxes
A class pass form with the Bambora Card field. The card boxes are loaded securely from Bambora / Worldline.

The amount charged is always calculated by Gravity Forms on the server from your product fields or form total. Values typed or changed in the browser are ignored.

Step 4: Create a Bambora Feed

Go to the form’s Settings → Bambora and click Add New. The button is available once the form contains a Bambora Card field. Choose the Transaction Type.

Products and Services (one-time payments)

Set Payment Amount to Form Total or a single product field, then pick a Payment action:

  • Charge immediately (purchase): the card is charged when the form is submitted and the entry is marked Paid.
  • Authorize only, capture later from the entry: the amount is reserved on the card and the entry is marked Authorized. Capture it later from the entry screen.
Bambora feed for Products and Services with Form Total as the payment amount and the Payment action options charge immediately or authorize only
A one-time payment feed charged from the form total.

Subscriptions (Bambora Recurring Billing)

Choose Subscription, set the Recurring Amount, the Billing Cycle (days, weeks, months or years) and Recurring Times (leave it on infinite, or choose a fixed number of payments). Free trial (days) delays the first charge by 0 to 365 days. Setup fees and paid trials are not available, because the one-time card token can only be charged once.

Bambora subscription feed with form total as recurring amount, monthly billing cycle, 12 recurring times and a 7-day free trial
A monthly membership with 12 payments and a 7-day free trial.

Under Billing Information, map name, email, address, city, state or province, postal code, country and phone. They are sent to Bambora with the payment. Canadian provinces and US states are converted to two-letter codes.

Step 5: Set Up Renewal Notifications (Webhooks)

You only need this for subscriptions. Bambora reports each renewal charge to a Response Notification URL. Copy the URL from the Subscription renewal notifications section of the add-on settings, then paste it in the Bambora portal under administration → account settings → order settings → Response Notification.

Subscription renewal notifications section with the private notification URL to paste into the Bambora Response Notification setting
The notification URL includes a private key. Keep it secret.

Bambora does not sign renewal notifications, so the add-on protects them in three ways. Requests without the right key are refused. Every notification is checked against the Payment API before the entry is updated, so a fake message cannot add a payment. And each transaction is recorded only once, even if Bambora sends it again.

Step 6: Manage Payments From the Entry Screen

Entries paid through Bambora show a Bambora payment box with the mode, status, transaction ID, card brand and last four digits, order number and auth code, plus a link to the Bambora portal. Payments made in sandbox mode carry a “Sandbox mode” notice and an entry note. Users who can edit entries get these actions, each with a confirmation prompt:

  • Refund: full or partial, up to the amount still refundable. A full refund marks the entry Refunded.
  • Void payment: cancels the whole payment before Bambora’s daily settlement. The entry becomes Voided.
  • Capture payment: for authorized entries, capture the full amount or less. The entry becomes Paid.
  • Void authorization: sends a void request for an authorization you no longer want to capture. Try it once in your test account first.
  • Cancel Subscription: the standard Gravity Forms button in the Payment Details box. It needs the Recurring Billing API passcode.
Bambora payment box on a Gravity Forms entry showing sandbox notice, Paid status, transaction ID, Visa card ending 1234, order number, auth code, refund amount and Refund and Void payment buttons
A paid sandbox entry with the Refund and Void payment actions.

Test in Sandbox Before Going Live

  1. Create a free test account on the Worldline North America developer site. Choose your country and currency (create a second account if you also need USD).
  2. Log in to the merchant portal at web.bam.shift4api.net/admin, note the Merchant ID and generate the Payment API passcode as described in Step 2.
  3. Keep the mode on Test (sandbox), paste the test credentials and save.
  4. Submit your form with the gateway’s test cards: Visa 4030000010001234 with CVV 123 (approved), Mastercard 5100000010001004 (approved) and Visa 4003050500040005 (declined). The full list is on the official test cards page.
  5. Try a refund, a void and, if you use them, an authorize-only payment plus capture and a subscription plus cancel. For subscriptions, a daily billing cycle lets you see a renewal notification arrive the next day.
  6. Enter your live account details, switch the mode to Live and save.

Developer Filter: gf_bambora_allowed_hosts

The gf_bambora_allowed_hosts filter controls which domains the advanced endpoint overrides may point to. It receives the list of allowed domains (by default bam.shift4api.net and na.bambora.com) and must return an array. This example removes the legacy domain once the old addresses are retired:

functions.php
PHP
// Allow endpoint overrides on bam.shift4api.net only
add_filter( 'gf_bambora_allowed_hosts', function( $domains ) {
    return array_values( array_diff( $domains, array( 'na.bambora.com' ) ) );
} );

Troubleshooting & FAQ

Customers see “Payments are temporarily unavailable”.

The payment was stopped before reaching Bambora, or Bambora rejected your credentials. Check that the account for the current mode has a Merchant ID and Payment API passcode, that the Account currency matches the Gravity Forms currency, and that your GravityExtra license is active. Turn on Forms → Settings → Logging for a detailed reason.

The card boxes do not appear on the form.

The secure fields are loaded from Bambora / Worldline when the page opens. Make sure Gravity Forms is version 2.9 or higher, that the page is served over HTTPS, and that a caching, optimization or security plugin is not delaying or blocking scripts from libs.bam.shift4api.net.

Can a customer be charged twice by clicking submit again?

No. Each form load can be charged once and each card token can be used once. A declined card can be corrected and submitted again. If Bambora does not answer in time, the customer is asked to contact you before trying again.

Subscription renewals do not appear on the entry.

Check that the Response Notification URL in the Bambora portal is exactly the one shown in the add-on settings, including the key, and that it is set in the same account (test or live) that created the subscription. Renewals are only recorded after the add-on confirms them with the Payment API.

Cancel Subscription shows an error note.

Add the Recurring Billing API passcode for that mode in the add-on settings, or close the recurring account directly in the Bambora portal. A refund or void that fails also adds a note with Bambora’s message, for example when a void is tried after the daily settlement. Use a refund instead in that case.

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