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

Gravity Forms Cardknox Payment Gateway Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Payments & Pricing
On this page
  1. Video walkthrough
  2. Installation
  3. Create Your Cardknox Keys
  4. Connect the Add-on
  5. Add the Card Field to a Form
  6. Create the Feed
  7. One-time Payments
  8. Subscriptions
  9. Renewals on the entry
  10. 3D Secure
  11. Refunds and Voids
  12. The Optional Webhook
  13. Notification Events
  14. Troubleshooting
  15. The card fields stay empty or show an error.
  16. Saving the settings says Cardknox did not accept the transaction key.
  17. Every payment says the card was declined.
  18. The form says card payments are not available in my currency.
  19. A refund says the transaction is not settled.
  20. What happens without an active licence?
  21. Take Cardknox Card Payments in Gravity Forms

Video walkthrough

Gravity Forms Cardknox Payment Gateway: Setup, Test Keys, 3D Secure and Card Field
Watch: set up Cardknox card payments for Gravity Forms on the WordPress side. Watch on YouTube

A Gravity Forms entry for a lesson package paid by card with Cardknox: the order with ten private guitar lessons for 240 dollars, the notes saying the payment was completed and approved through the iFields on the form with a Visa card ending in 1111, and on the right the Cardknox box with a test mode badge, status Paid, type one-time payment, the card, amount, reference and invoice, a refund amount with a Refund button and a Void payment button
The entry screen: payment notes and the Cardknox box with Refund and Void.

Requirements

  • WordPress 6.5 or newer, PHP 7.4 or newer, a site address with HTTPS.
  • Gravity Forms 2.9 or newer (any licence).
  • A Cardknox (Sola) merchant account. For testing, a free Cardknox sandbox account.
  • An API key and an iFields key from the Cardknox Merchant Portal.

The Gravity Forms Cardknox Payment Gateway Premium Add-on takes card payments on any Gravity Forms form through Cardknox, the payment gateway that is now part of Sola Payments. The card number and the CVV are typed into Cardknox iFields: small secure iframes served by Cardknox. Your site only receives single-use tokens, so card data never touches your server. The add-on handles one-time payments, subscriptions on a Cardknox recurring schedule, 3D Secure, refunds and voids. This guide walks you through every setting.

Installation

  1. Download the add-on zip from your GravityExtra account and upload it in Plugins → Add New → Upload Plugin, then activate it.
  2. Go to Forms → Settings → Cardknox, enter your key in the Gravity Extra License section and click Activate License.
  3. The Cardknox settings appear below the licence once it is active.

Create Your Cardknox Keys

Cardknox uses two keys for each account. Sign in to the Cardknox Merchant Portal, open Account Settings → Keys and click Create a Key. Create one of each type:

Key What it does Where it is used
API key (transaction key) Runs the payments, refunds, voids and recurring schedules. On your server only. Stored encrypted, never shown again.
iFields key Loads the secure card fields and turns the card into single-use tokens. In the browser. It is public by design.

Never mix them up

The iFields key is visible in the page source of your form. Never paste the API key into the iFields key setting. The add-on keeps the API key in a password field and only uses it on the server.

Copy each key when it is shown: the portal does not show it again. A sandbox account has its own keys, and a production account has its own keys. Test keys never charge a real card.

Connect the Add-on

The Cardknox settings page: mode Test or Live, the test transaction key as a hidden password field saved encrypted, the test iFields key, empty live key fields, a green status line saying the test transaction key was accepted by Cardknox, the 3D Secure option, and the optional webhook section with the webhook address and the webhook PIN fields
Forms → Settings → Cardknox: keys per mode, key check, 3D Secure and the webhook.
  1. Leave the mode on Test.
  2. Paste the sandbox API key into Test transaction key and the sandbox iFields key into Test iFields key.
  3. Click Save Settings. The add-on checks the key with the Cardknox Recurring API and shows Transaction key accepted by Cardknox in green. A wrong key shows the answer from Cardknox in red.
  4. When your tests pass, paste the live keys, switch the mode to Live and save again.

Leave a key field empty to keep the saved key. Paste a new value to replace it. Entries remember the mode they were paid in, so a refund on a test entry always goes to the sandbox account, even after you switch to Live.

Add the Card Field to a Form

Open the form in the editor and add the Cardknox Card field from the Pricing Fields group. Use it on forms with Product fields and a Total field, or any other pricing fields. The field shows four parts on the live form:

  • Name on card, sent to Cardknox as the cardholder name.
  • Card number, a Cardknox iFields iframe with automatic spacing.
  • Expiry, month and year drop-downs, checked before anything is sent.
  • CVV, a second Cardknox iFields iframe.
A lesson package form with name, email, mobile phone and billing address, the product Ten private guitar lessons at 240 dollars, the total, and the Card details field with the name on card, the secure Cardknox card number field, expiry month and year, the secure CVV field and a line saying card number and CVV never reach or stay on this site
The Cardknox Card field: card number and CVV are Cardknox iFields.

When the customer clicks the submit button, iFields sends the card number and CVV straight to Cardknox and puts single-use tokens into hidden inputs. Only then does Gravity Forms send the form. The tokens can be used once and are never saved in the entry. Use one Cardknox Card field per page.

Create the Feed

Open the form’s Settings → Cardknox and click Add New.

Setting What to choose
Transaction type Products and Services for one-time payments, Subscription for recurring payments.
Description The transaction description in your Cardknox reports. Merge tags work.
Cardknox receipt Ask Cardknox to e-mail its own receipt to the mapped email address.
Payment amount The form total or a single product.
Billing information Map name, email, phone and address. Cardknox uses them for its reports, its fraud checks and 3D Secure.
Conditional logic Only take the payment when a condition is met.

One-time Payments

The amount is always worked out on the server from the pricing fields, never taken from the browser. While Gravity Forms validates the form, the add-on sends a sale to the Cardknox Transaction API with the tokens. The answer decides what happens next:

Answer What the customer sees Entry
Approved Your confirmation message or page. Saved as Paid with the reference number, card type and last four digits.
Declined A message on the card field, for example The card payment was declined. Not saved. The customer can try another card.
Error or no answer A friendly message saying nothing was charged. Not saved.
Verify (3D Secure) The bank challenge window. Saved after the challenge is passed.

If Cardknox approves a different amount than asked (a partial approval), the add-on voids it at once and asks the customer for another card. You never get an entry that is only partly paid.

Subscriptions

Choose Subscription as the transaction type and set the recurring amount, the billing cycle and the number of payments. When the form is sent:

  1. The first payment is charged on the form, the same way as a one-time payment. It is the recurring amount plus the setup fee, or the trial amount when a trial is on.
  2. With the reusable card token from that payment, the add-on creates a Cardknox recurring schedule: a customer with the card as its payment method, the recurring amount and the billing cycle. The schedule starts one billing cycle later, so the first month is never charged twice.
  3. The entry is saved as Active with the schedule id as its subscription id.
Feed setting Cardknox schedule
Billing cycle Every 1 to 365 days, 1 to 52 weeks, 1 to 12 months, or every year.
Recurring times The number of payments in total. The first payment on the form counts as one; with a trial it does not. Leave it on infinite to charge until cancelled.
Setup fee Added to the first payment only.
Trial The trial amount replaces the first payment. A free trial saves the card without a charge.

If the schedule cannot be created, the first payment is voided and the customer is told that nothing was charged. Cardknox retries a declined renewal on the following days, as set in your account.

Renewals on the entry

Twice a day the add-on reads the transactions of every active schedule from the Cardknox Recurring API. Each approved renewal is added to the entry as a subscription payment; each declined one is noted and fires the Subscription Payment Failed event. Click Refresh renewals from Cardknox on the entry to check at once. When a schedule ends after its last payment the entry becomes Expired. When it is stopped in the Cardknox portal it becomes Cancelled. Cancelling the subscription in Gravity Forms stops the schedule at Cardknox.

3D Secure

Turn on 3D Secure in the settings when 3DS is enabled for your Cardknox account. The card fields then start the 3D Secure library of Cardknox when the page loads. If the card issuer asks for a challenge, the form shows a short message and the bank window opens. As soon as the customer confirms, the form is sent again on its own and the payment is finished with the Cardknox verify request.

  • Map the name, email, street, city, state, ZIP and phone in the feed: Cardknox needs them for 3D Secure.
  • Each challenge can be finished once, within 15 minutes, for the same form, amount and currency. A changed or replayed request is refused.
  • The entry shows whether the payment was authenticated.

Refunds and Voids

The Cardknox box on the entry screen shows the status, card, amounts, the reference number and the invoice number. For one-time payments it offers:

  • Void payment: cancels a payment that has not settled yet, usually the same day before the batch closes. The entry becomes Voided.
  • Refund: returns all or part of a settled payment. Refund in parts until nothing is left. The entry becomes Partially Refunded, then Refunded.

Each button asks for confirmation, checks that you may edit entries and sends a one-time request id, so a double click never refunds twice. If Cardknox refuses, for example a refund before settlement, the box shows its answer.

The Optional Webhook

Renewals are picked up twice a day without any setup. For faster updates, open Settings → Gateway Settings → Webhook in the Cardknox portal, paste the webhook address shown in the add-on settings as the Postback URL and set a PIN of at least 15 letters and numbers. Paste the same PIN in the add-on. Each notification is checked with the PIN and only starts a check; the add-on always reads the data again from the Cardknox API.

Notification Events

Payment feeds add these events to Settings → Notifications: Payment Completed, Payment Refunded, Payment Voided, Subscription Created, Subscription Payment Added, Subscription Payment Failed, Subscription Canceled and Subscription Expired.

Troubleshooting

The card fields stay empty or show an error.

Check that the iFields key of the active mode is saved and belongs to the same account as the API key. Ad blockers can block the Cardknox iframes; ask the customer to try again without them.

Saving the settings says Cardknox did not accept the transaction key.

Paste the API key again, not the iFields key. A sandbox key only works in Test mode and a production key only in Live mode.

Every payment says the card was declined.

In a sandbox account, amounts such as 9.91 are declined on purpose. Use another amount, and use the test cards from the Cardknox documentation.

The form says card payments are not available in my currency.

The add-on takes currencies with two decimals. For a currency other than US dollars your Cardknox account needs multi-currency, or must be set up in that currency.

A refund says the transaction is not settled.

The payment has not settled yet. Use Void payment instead, or wait until the batch closes.

What happens without an active licence?

The settings show only the licence box, the card field shows a short note and no payment is taken. Existing entries keep their data.

Take Cardknox Card Payments in Gravity Forms

Secure iFields, one-time payments, recurring schedules, 3D Secure, refunds and voids, all inside Gravity Forms.

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