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

Gravity Forms Paysafe 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 Paysafe Account
  3. Sandbox and Live mode
  4. Enter your credentials
  5. Step 3: Add the Paysafe Card Field
  6. Step 4: Create a Paysafe Feed
  7. Step 5: Webhooks Are Not Needed
  8. Step 6: Manage Payments From the Entry Screen
  9. Test in Sandbox Before Going Live
  10. Developer Filter: Customize the Payment Request
  11. Troubleshooting & FAQ
  12. Customers see “Payments are temporarily unavailable”.
  13. The card boxes do not appear on the form.
  14. Can a customer be charged twice by clicking submit again?
  15. I refunded in the Paysafe back office but the entry still says Paid.
  16. A partial refund was refused.
  17. Payments fail after turning on 3-D Secure 2.
  18. Resource Hub

The Gravity Forms Paysafe Payment Premium Add-on lets you take card payments through your Paysafe merchant account directly inside a Gravity Forms form. Customers type their card into secure fields loaded from Paysafe (Paysafe.js), so card numbers never pass through your WordPress site. You can charge the card right away, or authorize first and capture later, and handle refunds, captures and voids from the entry screen.

What this add-on does and does not do

It takes one-time card payments through the Paysafe Card Payments API (North America). It does not create subscriptions or recurring billing, and it does not use webhooks. Payments are confirmed the moment Paysafe answers, and refunds made from the entry screen are recorded on the entry. A refund you make directly in the Paysafe back office does not update the Gravity Forms entry.

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
  • Paysafe merchant account: an account that can use the Paysafe Card Payments API, with a Server to Server API key and a Single-Use Token API key. Paysafe’s Card Payments API documentation describes it as available in North America, so confirm with Paysafe that your account has access. Start with a free test account.
  • Currency: USD, CAD, EUR or GBP. Each Paysafe account number processes one currency, and it must match the Gravity Forms currency.
  • GravityExtra license: the Paysafe 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 → Paysafe.
  3. Enter your license key in the Gravity Extra License section and save. The Paysafe settings appear once the license is active.

Step 2: Connect Your Paysafe Account

Sandbox and Live mode

A fresh install starts in Test (sandbox) mode. Test payments go to Paysafe’s test environment and no real money moves. A yellow “Sandbox mode is ON” notice stays at the top of the settings until you choose Live yourself. The settings page has separate Test account and Live account sections, so you can keep both sets of credentials and switch with one click.

Enter your credentials

In the Paysafe Merchant Back Office, open Settings → API Key. You need four things for each mode:

  • Account number: the number of the card account for your currency, digits only.
  • Account currency: USD, CAD, EUR or GBP. It must match Forms → Settings → Currency, otherwise payments are refused before anything is sent to Paysafe.
  • Server to Server API key (user name and password): used only by your server to take payments. It is stored in the add-on settings, masked, and never shown on the page, in entries or in emails.
  • Single-Use Token API key (user name and password): used by Paysafe.js in the visitor’s browser. This key can only create card tokens; it cannot take payments.

Click Save Settings. The add-on makes a read-only lookup request to Paysafe and shows “Connected. Paysafe accepted these credentials” when the Server to Server key works. Nothing is charged. If Paysafe rejects the key, the field shows “Paysafe rejected these credentials” with Paysafe’s error code.

Paysafe settings in Gravity Forms with Test sandbox mode selected, the sandbox notice, account number, USD currency, masked API key passwords and a Connected message
Forms → Settings → Paysafe in sandbox mode with a connected test account.

The optional 3-D Secure 2 checkbox asks Paysafe.js to run 3-D Secure 2 before the card token is created. Leave it off unless Paysafe has enabled 3-D Secure 2 on your account, otherwise payments fail.

Step 3: Add the Paysafe Card Field

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

In plain words, this is how the card stays off your site. The three card boxes are small secure windows (iframes) served by Paysafe, not normal form inputs. When the customer clicks submit, Paysafe.js turns the card into a single-use token, which Paysafe says is valid for 5 minutes. Only that token is sent to WordPress, and the add-on uses it once to make the payment. Paysafe describes this setup as meeting the simplest PCI level, SAQ-A.

Gravity Forms course payment form with name, email, phone, billing address, total and the Paysafe Card field with name on card and secure card number, expiry and security code boxes
A course payment form with the Paysafe Card field. The card boxes are loaded securely from Paysafe.

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

Step 4: Create a Paysafe Feed

Go to the form’s Settings → Paysafe and click Add New. The button is available once the form contains a Paysafe Card field. The Transaction Type offers Products and Services only, because this version takes one-time payments. Set Payment Amount to Form Total or a single product, then choose a Payment action:

  • Charge immediately (authorize and settle): 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 it later, for example once a booking is confirmed.
Paysafe feed with Products and Services as the transaction type, 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.

Under Billing Information, map the address, city, state, ZIP, country and phone fields. They are sent to Paysafe as billing details, and US states and Canadian provinces are converted to two-letter codes. The name typed in “Name on card” goes to Paysafe.js as the cardholder name.

Step 5: Webhooks Are Not Needed

This add-on does not use webhooks, so there is nothing to set up in Paysafe. Each payment is confirmed by Paysafe’s direct answer when the form is submitted, and refunds, captures and voids made from the entry screen are recorded on the entry at the same time.

Refunds made in the Paysafe back office

Because there are no webhooks, a refund, capture or cancellation made directly in the Paysafe back office is not sent back to Gravity Forms. The entry keeps its old status. Make refunds from the entry screen, or add a note to the entry when you refund in the back office.

Step 6: Manage Payments From the Entry Screen

Entries paid through Paysafe show a Paysafe payment box with the mode, status, authorization and settlement IDs, card brand and last four digits, merchant reference and auth code. Sandbox payments 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. Paysafe settles payments in a daily batch. Before that batch, only the full amount can be returned and the add-on cancels the pending settlement instead; partial refunds work after the batch.
  • Capture payment: for authorized entries, capture the full amount or less. The entry becomes Paid.
  • Void authorization: release an authorization you no longer want to capture. The customer is not charged.
Paysafe payment box on a paid sandbox entry with authorization ID, settlement ID, Visa card ending 2345, merchant reference, auth code, refund amount and Refund button
A paid sandbox entry with the Refund action.
Paysafe payment box on an authorized sandbox entry with Mastercard ending 5115, capture amount and the Capture payment and Void authorization buttons
An authorized sandbox entry with Capture payment and Void authorization.

If Paysafe places a transaction on hold for review, the entry is marked Authorized, a note explains the hold, and no action buttons are shown. Release or cancel it in the Paysafe back office.

Test in Sandbox Before Going Live

  1. Open the Paysafe test account sign-up at developer.paysafe.com (“Create A Test Account”). Choose USD or CAD as the currency.
  2. Log in to the Test Merchant Back Office.
  3. Open Settings → API Key. Copy the Server to Server user name and password.
  4. On the same page, create a Single-Use Token key (Paysafe emails you a security token to confirm), then copy its user name and password.
  5. Note the account number of the card account for your currency, keep the add-on on Test (sandbox), enter the details and save.
  6. Submit your form with the Paysafe test Visa 4530910000012345 or Mastercard 5191330000004415, any future expiry date and any 3-digit CVV. The full list is on the official test cards page.
  7. Try a full refund the same day (it cancels the pending settlement), an “Authorize only” payment with a capture, and one void.
  8. Enter your live account details, switch the mode to Live and save.

Developer Filter: Customize the Payment Request

The gravityextra_paysafe_auth_request filter receives the payment request before it is sent to Paysafe, with the feed, the submission data and the form. You can change optional parts such as the billing details. The amount, merchant reference and card token are set by the add-on after the filter runs and cannot be changed. This example sends a shorter billing address:

functions.php
PHP
// Send only the street, city, state, country and ZIP with Paysafe card payments
add_filter( 'gravityextra_paysafe_auth_request', function( $body, $feed, $submission_data, $form ) {
    if ( isset( $body[ 'billingDetails' ] ) ) {
        unset( $body[ 'billingDetails' ][ 'street2' ], $body[ 'billingDetails' ][ 'phone' ] );
    }
    return $body;
}, 10, 4 );

Troubleshooting & FAQ

Customers see “Payments are temporarily unavailable”.

The payment stopped before reaching Paysafe, or Paysafe rejected your credentials. Check that the current mode has an account number and both API keys, that the Account currency matches the Gravity Forms currency, and that your GravityExtra license is active. Turn on Forms → Settings → Logging to see the Paysafe error code.

The card boxes do not appear on the form.

The secure fields load from hosted.paysafe.com. Make sure Gravity Forms is 2.9 or higher, the page uses HTTPS, the Single-Use Token key is filled in for the current mode, and no caching or security plugin delays or blocks scripts from that address.

Can a customer be charged twice by clicking submit again?

No. Each form load and each card token can be charged only once, and every payment carries a unique merchant reference. A declined card can be corrected and submitted again. If Paysafe does not answer in time, the add-on looks the payment up first; if it still cannot confirm it, the customer is asked to contact you instead of paying again.

I refunded in the Paysafe back office but the entry still says Paid.

That is expected: the add-on has no webhooks, so back-office changes are not synced. Refund from the entry screen next time, or add a note to the entry.

A partial refund was refused.

Paysafe has not batched the payment yet. Before the daily batch only the full amount can be returned. Refund the full amount now, or try the partial refund again the next day. The reason is added as an entry note.

Payments fail after turning on 3-D Secure 2.

Your Paysafe account must be enabled for 3-D Secure 2 by Paysafe. Turn the option off until Paysafe confirms it.

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