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

Gravity Forms CyberSource 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 CyberSource in Test Mode
  3. Test (sandbox) and Production
  4. Create your REST shared secret key
  5. Enter the keys and save
  6. Step 3: Add the CyberSource Card Field
  7. Step 4: Create a CyberSource Feed
  8. Step 5: Webhooks (Optional)
  9. Step 6: Manage Payments From the Entry Screen
  10. Test in Sandbox Before Going Live
  11. Developer Filter: Partner Solution ID
  12. Troubleshooting & FAQ
  13. The card fields do not appear on the form.
  14. Saving the settings says the keys were rejected.
  15. A customer’s card was declined.
  16. Can a customer be charged twice by clicking submit again?
  17. An entry says the payment is held for review.
  18. Can I sell subscriptions?
  19. Resource Hub

The Gravity Forms CyberSource Payment Premium Add-on lets you take card payments through your CyberSource merchant account directly inside a Gravity Forms form. Customers stay on your page: the card number and security code are typed into secure fields served by CyberSource (Microform), so card data never passes through your WordPress site.

You can charge the card immediately or authorize it and capture later, then refund, void or capture from the entry screen. This guide walks through connecting your keys, building the form and feed, optional webhooks and testing in the CyberSource sandbox.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher, served over HTTPS (CyberSource only shows its card fields on secure pages)
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.7 or higher
  • CyberSource merchant account: with REST API access and Microform enabled, and a REST – Shared Secret key for each environment (Test and Production)
  • Currency: the currency set in Forms → Settings → Currency is sent with each payment. Your CyberSource account decides which currencies it accepts.
  • Payment type: one-time card payments (charge now, or authorize and capture later). Subscriptions are not included in this version.
  • GravityExtra license: the CyberSource 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 → CyberSource.
  3. Enter your license key in the Gravity Extra License section and save. The CyberSource settings appear once the license is active.

Step 2: Connect CyberSource in Test Mode

Test (sandbox) and Production

A fresh install starts in the Test (sandbox) environment. Test payments go to CyberSource’s test system and no real money moves. A yellow “Sandbox mode” notice appears on the settings page, under the card field and on every test entry until you choose Production (real payments) yourself. Each environment has its own set of keys, so switching back and forth never mixes them up.

Create your REST shared secret key

  1. Sign in to the CyberSource Business Center. Use the test Business Center for the Test environment and the production Business Center for Production.
  2. Open Payment Configuration → Key Management, click Generate key and choose REST – Shared Secret.
  3. Copy the Key (this is your Key ID) and the Shared Secret. Your Merchant ID is the organization ID you sign in with.

Enter the keys and save

Under Test (Sandbox) Keys, paste the Merchant ID, Key ID and Shared Secret, then click Save Settings. The add-on asks CyberSource to open a card form session with those keys. Nothing is charged. When the keys work you see “Connected to the CyberSource Test environment.” If CyberSource refuses them, the message tells you whether the keys were rejected or the server could not be reached. The Shared Secret is stored in a password field and is never sent or written to entries.

Use Accepted cards to choose which card networks the secure card fields accept. Visa, Mastercard, American Express and Discover are selected by default. Only select networks your CyberSource account is enabled for.

CyberSource settings in Gravity Forms with the Sandbox mode notice, Test environment selected, accepted card networks, Merchant ID, Key ID, masked Shared Secret with a Connected to the CyberSource Test environment message, and webhook key fields
Forms → Settings → CyberSource, connected to the Test environment.

To go live, choose Production (real payments), enter the keys from your production Business Center in Production Keys and save. The add-on will not switch to Production while the production keys are empty.

Step 3: Add the CyberSource Card Field

Open your form in the editor and add the CyberSource Card field from Pricing Fields, together with your product fields and a Total field. Do not use the standard Gravity Forms Credit Card field.

Here is how card data stays off your site, in plain words. The card number and security code boxes are small windows loaded straight from CyberSource. The expiry month and year are simple drop-downs that are never sent to your server. When the customer clicks submit, CyberSource turns the card into a one-time code called a token. Only that token reaches WordPress, and the add-on uses it once to make the payment. Your site never sees or stores the card number, which keeps your PCI scope at the simplest level.

Gravity Forms workshop registration with a $185 product, name, email, US billing address, total and the CyberSource Card field with card number, expiry month, expiry year and security code
A workshop registration form with the CyberSource Card field.

The amount is always calculated on the server from your product fields, so changing a price in the browser has no effect on the charge.

Step 4: Create a CyberSource Feed

Go to the form’s Settings → CyberSource and click Add New. The Transaction Type is Products and Services (one-time payments). Set Payment Amount to Form Total or a single product, then choose the Payment action:

  • Charge immediately (authorize and capture): the card is charged on submission 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 or void it later, for example once a booking is confirmed.
CyberSource feed in Gravity Forms with feed name Workshop payment, Products and Services transaction type, Form Total as payment amount and the Payment action choice between charging immediately and authorizing only
A one-time payment feed charged from the form total.

Under Billing Information, map the first name, last name, company, email, phone and billing address. They are sent with the payment as the cardholder’s billing details, which CyberSource can use for address verification. Add conditional logic if only some submissions should be charged.

Step 5: Webhooks (Optional)

Payments, captures, refunds and voids made from your website are recorded on the entry immediately, so webhooks are not required. They are useful if your team also captures or voids payments in the CyberSource Business Center and wants those changes reflected on the entry.

Webhooks section of the CyberSource settings with an explanation and the read-only Webhook URL ending in callback equals gfcybersourceaddon
The Webhook URL to use in your CyberSource webhook subscription.
  1. Create a webhook digital signature key with CyberSource and paste its Key ID and Key into Webhook Key ID and Webhook Key for the matching environment.
  2. Create a webhook subscription for the payments product that points to the Webhook URL shown in the settings.
  3. Ask CyberSource support to enable payment event notifications for your account.

Notifications without a valid signature are rejected, and a repeated notification is processed only once.

Encrypted notifications are logged, not applied

CyberSource sends payment event notifications with message-level encryption. This version acknowledges encrypted notifications and writes them to the Gravity Forms log, but does not change the entry. Payments made from your website are not affected.

Step 6: Manage Payments From the Entry Screen

Entries paid through the add-on show a CyberSource Payment box with the status, card brand and last four digits, Request ID, Reconciliation ID, approval code and reference, plus a link to the Business Center (search by Request ID). Users who can edit entries get these actions, each with a confirmation prompt:

  • Capture payment and Void authorization: for Authorized entries. Capture charges the authorized amount; void releases it so the customer is not charged.
  • Refund: full or partial, up to the amount not yet refunded.
  • Void payment: cancels a paid payment before it settles, usually the same day. After that, use Refund.
CyberSource Payment box on a paid sandbox entry with Visa ending in 1111, Request ID, Reconciliation ID, approval code, reference, refund amount with Refund button and Void payment button
A paid sandbox entry with Refund and Void.
CyberSource Payment box on an authorized sandbox entry with Visa ending in 4242 and the Capture payment and Void authorization buttons
An authorized entry ready to capture or void.

Every action adds an entry note with the amount, the CyberSource ID and who did it. If CyberSource refuses an action, the reason is shown on the entry.

Test in Sandbox Before Going Live

  1. Create a sandbox account at developer.cybersource.com. Choose your Organization ID carefully, because it cannot be renamed, then follow the email to set up your user in the test Business Center.
  2. In the test Business Center, open Payment Configuration → Key Management and generate a REST – Shared Secret key.
  3. On an HTTPS site, keep the environment on Test (sandbox), paste the Merchant ID, Key ID and Shared Secret, and save until you see “Connected”.
  4. Add the CyberSource Card field and a feed to a form, then pay with test Visa 4111 1111 1111 1111, any future expiry date and security code 123.
  5. Try each flow you plan to use: a charge, a refund, a void, an authorize-only payment with capture, and a decline. The CyberSource testing guide lists more test cards and how to trigger declines.
  6. Generate production keys in the production Business Center, switch to Production (real payments), enter them and save.

Developer Filter: Partner Solution ID

If CyberSource has given you a Partner Solution ID, the gravityextra_cybersource_partner_info filter adds it to every request the add-on sends (payment, capture, refund, void and reversal). The filter receives the current context, the feed and the form. By default no partner information is sent.

functions.php
PHP
// Send your CyberSource Partner Solution ID with every payment, capture, refund and void
add_filter( 'gravityextra_cybersource_partner_info', function( $partner, $context ) {
    $partner['solutionId'] = 'YOURSOLUTIONID';
    return $partner;
}, 10, 2 );

Troubleshooting & FAQ

The card fields do not appear on the form.

Make sure the page is served over HTTPS, the form has an active CyberSource feed and the keys for the current environment are saved and connected. Check that an optimization or security plugin is not blocking scripts from CyberSource. If the secure form cannot load, customers see “The secure card form could not load”.

Saving the settings says the keys were rejected.

Check that the Merchant ID, Key ID and Shared Secret belong to the same environment. Test keys only work in Test, and production keys only in Production. If CyberSource refuses the session request, confirm with CyberSource that Microform is enabled on your account.

A customer’s card was declined.

The customer sees a short, friendly reason, such as an expired card or a wrong security code. Turn on Forms → Settings → Logging to see the CyberSource status and reason code. Cards that require 3-D Secure verification cannot be completed with this version.

Can a customer be charged twice by clicking submit again?

No. Each card token is charged only once. A repeated submission is told the payment was already submitted. If the connection to CyberSource drops mid-payment, the customer is asked to contact you before trying again.

An entry says the payment is held for review.

CyberSource Decision Manager held the payment. The entry stays Authorized until you accept or reject it in the Business Center.

Can I sell subscriptions?

Not in this version. The feed offers Products and Services for one-time payments only.

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