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

Gravity Forms BlueSnap 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 BlueSnap Account
  3. Sandbox and Live mode
  4. Enter your API credentials
  5. Step 3: Add the BlueSnap Card Field
  6. Step 4: Create a BlueSnap Feed
  7. Products and Services (one-time payments)
  8. Subscriptions (BlueSnap recurring plans)
  9. Step 5: Set Up Webhooks (IPN)
  10. Step 6: Manage Payments From the Entry Screen
  11. Test in Sandbox Before Going Live
  12. Developer Filter: Customize the Card Transaction
  13. Troubleshooting & FAQ
  14. Saving the settings shows “BlueSnap refused the request”.
  15. Customers see “Payments are temporarily unavailable”.
  16. The card boxes do not appear on the form.
  17. Which payment methods are supported?
  18. Subscription renewals or the first subscription charge do not appear on the entry.
  19. Resource Hub

The Gravity Forms BlueSnap Payment Premium Add-on lets you take card payments and subscriptions through your BlueSnap merchant account in any Gravity Forms form. Customers type their card into secure BlueSnap fields on your page, and you manage captures, voids, refunds and cancellations from the Gravity Forms entry screen.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher, served over HTTPS
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.7 or higher
  • BlueSnap merchant account: API access with an API username and password. Start with a free BlueSnap sandbox account.
  • Authorized IPs: your web server’s public outgoing IP address added to the BlueSnap allowlist (see Step 2)
  • Currency: the Gravity Forms currency is sent with every payment, so your BlueSnap account must be able to process it
  • GravityExtra license: the BlueSnap add-on installed, activated and licensed

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 → BlueSnap.
  3. Enter your license key in the Gravity Extra License section and save. The BlueSnap settings appear once the license is active.

Step 2: Connect Your BlueSnap Account

Sandbox and Live mode

A fresh install starts in Sandbox (testing) mode. Payments go to BlueSnap’s test environment and no real money is taken, and a yellow “Sandbox mode” notice stays at the top of the settings until you switch. Sandbox and Live use separate API credentials from the sandbox portal (sandbox.bluesnap.com) and the production portal (cp.bluesnap.com). The add-on refuses to switch to Live (real payments) until production credentials are entered.

Authorized IPs: allow your website’s IP address in BlueSnap

BlueSnap checks where every API request comes from. It only accepts calls from the IP addresses on your account’s Authorized IPs list, which you manage in the Merchant Portal under Settings → API Settings. BlueSnap allows up to 15 addresses or a range. If your web server’s IP is not on that list, BlueSnap refuses the connection test, the card fields cannot load and every payment fails.

  • Find the right IP: click Detect this server’s outgoing IP in the add-on settings. It makes one request to api.ipify.org, which only echoes back the public address your server uses for outgoing calls.
  • Add it in both portals: sandbox and production are separate accounts, so add the IP in each one before you test or go live.
  • Use a static IP: some shared and cloud hosts change outgoing IPs. Ask your host for a static outgoing IP, or the list will need updating after each change.

If the IP is missing, the connection test shows “BlueSnap refused the request” with the detected IP, so you can tell an IP problem from a wrong password. Customers only see a short “payments temporarily unavailable” message.

Enter your API credentials

  • In the BlueSnap portal, open Settings → API Settings → API Credentials, create an API password (12 to 128 characters) and click Request API credentials.
  • Copy the API User Key into API Username and the password into API Password. This is not your portal login password.
  • Optional: if you set a Data Protection Key in BlueSnap, enter the same value so webhook signatures can be checked.
  • Click Save Settings. The add-on asks BlueSnap for a short-lived card-field token (nothing is charged) and shows “Connected to BlueSnap (sandbox)” when it works.
BlueSnap settings in Gravity Forms in Sandbox mode with the Authorized IPs notice, a detected outgoing server IP, the API username, a masked API password and a Connected to BlueSnap (sandbox) message
Forms → Settings → BlueSnap in Sandbox mode, with the detected server IP to add under Authorized IPs.

Under Checkout Options you can also set a Statement descriptor (up to 20 letters, numbers and spaces on the customer’s card statement), turn on 3-D Secure, and add a Checkout disclosure that is shown under the card fields if BlueSnap gives you wording to display.

Step 3: Add the BlueSnap Card Field

Open your form in the editor and add the BlueSnap Card field from Pricing Fields, together with your product fields and a Total field.

In plain words, here is how the card stays off your site. The card number, expiry and security code boxes are small secure windows loaded from BlueSnap (BlueSnap Hosted Payment Fields), not normal form inputs. When the customer clicks submit, the card goes straight to BlueSnap and your form receives a one-time token instead. Of the card itself, WordPress only stores the brand and last four digits. The token expires after 60 minutes and can be charged only once.

Gravity Forms course enrollment form with name, email, phone, billing address, total and the BlueSnap Card field with secure card number, expiry and security code boxes and a Pay $480.00 button
A course enrollment form with the BlueSnap Card field in Sandbox mode.

The amount is always calculated by Gravity Forms on the server from your product fields, so prices changed in the browser are ignored. A second click on submit cannot charge the same card token twice.

Step 4: Create a BlueSnap Feed

Go to the form’s Settings → BlueSnap, click Add New and choose the Transaction Type.

Products and Services (one-time payments)

Pick the Payment Amount (Form Total or one product) and choose how cards are handled under Card Payments:

  • Charge immediately: the card is charged on submit and the entry is marked Paid.
  • Authorize only, capture later from the entry: the amount is held on the card and the entry is marked Authorized. Capture it before the hold expires, usually within 7 days depending on the card issuer.
BlueSnap feed with Products and Services transaction type, Card Payments options Charge immediately or Authorize only, and Form Total as the payment amount
A one-time payment feed that charges the form total immediately.

Subscriptions (BlueSnap recurring plans)

Choose Subscription, then set the Recurring Amount, Billing Cycle and Recurring Times. The add-on creates a matching BlueSnap plan and reuses it for later subscribers with the same terms.

  • Billing cycles: 1 day; 1 or 2 weeks; 1, 2, 3, 6 or 12 months; 1, 2 or 3 years. Other cycles are refused when you save the feed.
  • Setup Fee: charged together with the first period.
  • Trial: free trials only (set the trial to an amount of 0). Use a setup fee if you need to charge something up front.
  • Recurring Times: infinite or a fixed number of 2 or more payments.
BlueSnap subscription feed with Conversation Club monthly as the recurring amount, a 1 month billing cycle, infinite recurring times and the Registration Fee product as the setup fee
A monthly membership with a registration fee as the setup fee.

Under Billing Information, map first name, last name, email, phone and address fields. They are sent to BlueSnap as the card holder’s details.

Step 5: Set Up Webhooks (IPN)

Webhooks keep entries in sync with renewals, failed renewals, cancellations, portal refunds and chargebacks. For subscriptions they are required, because the first charge is added to the entry when BlueSnap’s Charge webhook arrives.

  1. Copy the Webhook URL from the Webhooks (IPN) section of the add-on settings.
  2. In the BlueSnap portal go to Settings → Webhook Settings → Add Endpoint URL and paste it.
  3. Turn on Charge, Recurring, Subscription Charge Failure, Cancellation, Refund and Chargeback.
  4. Repeat in the production portal before going live.
Webhooks (IPN) section of the BlueSnap add-on settings with setup instructions and the private webhook URL
The webhook URL contains a secret key unique to your site. Keep it private.

Requests without the right key are refused. With a Data Protection Key saved, each webhook’s authKey is checked too, and a webhook that is sent twice is only applied once.

Step 6: Manage Payments From the Entry Screen

Entries paid through BlueSnap show a BlueSnap Payment box with the status, card brand and last four digits, transaction ID, merchant reference and vaulted shopper ID. Sandbox payments carry a “Sandbox mode” badge. Users who can edit entries get these actions, each with a confirmation prompt:

  • Capture payment and Void authorization on Authorized entries.
  • Refund on Paid entries, full or partial, up to the amount not yet refunded.
  • Cancel Subscription, the standard Gravity Forms button on subscription entries. It cancels the subscription in BlueSnap.
BlueSnap Payment box on a Gravity Forms entry with a Sandbox mode badge, status Paid, Mastercard ending in 9903, transaction ID, merchant reference, vaulted shopper ID and a Refund button
A paid sandbox entry with the refund amount and Refund button.

Test in Sandbox Before Going Live

  1. Create a free sandbox merchant account at sandbox.bluesnap.com with your business email.
  2. In the sandbox portal, add your server’s outgoing IP under Authorized IPs, create the API password and request API credentials (Step 2).
  3. Keep the mode on Sandbox, paste the credentials and save. Add the webhook URL in the sandbox portal (Step 5).
  4. Submit your form with BlueSnap test cards, for example Mastercard 5425233430109903 with expiry 04/2029 or Amex 374245455400126 with expiry 05/2029 (approved). For a decline, use Visa 4000000000001000 with expiry 11/2029 and CVV 914 (insufficient funds). See the full BlueSnap test cards list.
  5. Try a refund, an authorize-only payment with capture and void, and a subscription with cancel. Check that the webhooks reach the entries.
  6. If you plan to use 3-D Secure, ask BlueSnap to enable it on your sandbox account and test it there first.
  7. When everything works, add your production IP and webhook in the production portal, enter the production credentials, switch to Live and save.

Developer Filter: Customize the Card Transaction

The gravityextra_bluesnap_transaction filter changes the card transaction sent to BlueSnap for one-time payments. It receives the request body (amount, currency and token are already set), the feed and the form. This example uses a different statement descriptor for one form:

functions.php
PHP
// Course payments show a different statement descriptor
add_filter( 'gravityextra_bluesnap_transaction', function( $body, $feed, $form ) {
    if ( 5 === (int) $form['id'] ) {
        $body['softDescriptor'] = 'BRIGHTLINE COURSE';
    }
    return $body;
}, 10, 3 );

Subscriptions have a matching gravityextra_bluesnap_subscription filter.

Troubleshooting & FAQ

Saving the settings shows “BlueSnap refused the request”.

Either the API username or password is wrong, or your server’s IP is not on the Authorized IPs list of that portal. Click Detect this server’s outgoing IP, make sure exactly that address is listed in the sandbox or production portal you are connecting to, and save again.

Customers see “Payments are temporarily unavailable”.

BlueSnap rejected the request, usually because the server IP changed or the credentials for the current mode are missing. Check the connection status in the settings and turn on Forms → Settings → Logging for the detailed reason. Card data and passwords are never written to the log.

The card boxes do not appear on the form.

The secure fields load from BlueSnap when the page opens. Make sure the page is served over HTTPS, that an optimization or security plugin is not delaying or blocking scripts from bluesnap.com, and that the page has only one form with a BlueSnap Card field, because BlueSnap supports one set of card fields per page.

Which payment methods are supported?

Card payments and card subscriptions. ACH/eCheck, Apple Pay, Google Pay and PayPal are not available in this version.

Subscription renewals or the first subscription charge do not appear on the entry.

Check that the webhook URL in the BlueSnap portal matches the add-on settings exactly, including the key, that it is set in the same portal (sandbox or production) that created the subscription, and that the Charge and Recurring events are turned on.

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