🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 22, 2026

How to Accept Unzer Payments in a Gravity Forms Form

GravityExtra
How to Accept Unzer Payments in a Gravity Forms Form

Customers in Germany, Austria and Switzerland like to pay with the methods they know: a card, PayPal, SEPA direct debit or an invoice. Unzer, the company that used to be called Heidelpay, gathers these and many more behind one account and one API. If your website collects bookings, orders or donations with Gravity Forms, the missing piece is a clean way to send the customer to Unzer and to get a trustworthy answer back. This guide shows how to build that with an add-on, step by step, and explains what happens behind the scenes so you can trust the result.

A Gravity Forms booking form for a pottery course with name, email, mobile number, billing address, two products with quantities, the total in euros and a button that continues to the payment
A normal Gravity Forms form. The customer pays on the Unzer page after sending it.

What the Result Looks Like

A visitor fills in your Gravity Forms form, for example a course booking with two products and a total in euros. After sending it, the visitor lands on a secure Unzer payment page that shows the amount and the payment methods of your account. After paying, the visitor comes back to your site and sees your normal confirmation message. In the background your entry changes from Processing to Paid, notes are added, and the notifications you chose are sent.

You keep full use of Gravity Forms: multi page forms, conditional logic, file uploads, spam protection and every notification. The add-on only adds the payment part.

What You Need

  • Gravity Forms 2.9 or newer on WordPress 6.5 or newer.
  • An Unzer account with at least one payment method activated, and its public key and private key.
  • The Unzer Payment Gateway add-on and its license key.
  • A site that uses HTTPS.

There is no partner approval and no extra account. You enter your own keys, and the add-on talks to the public Unzer API. Start with the sandbox keys, whose prefix is s-, and switch to the production keys, whose prefix is p-, when you are ready.

Step 1: Enter Your Keys

Log in to your Unzer account and copy the public key and the private key. The private key is the one that lets your site create payment pages and read payments, so treat it like a password. In WordPress open Forms, Settings and Unzer, enter both keys and press Save.

The add-on exchanges the private key for a short-lived token, which is how the Unzer API wants to be called today, and checks that the public key belongs to it. If everything is right you see Connected to Unzer, a hint of both keys and the mode, which the add-on reads from the key prefix. If a key is wrong, or one is a sandbox key and the other a production key, nothing is saved and the message tells you why.

The Unzer settings in Gravity Forms: public key, private key, the sandbox mode read from the key, a connected message, the currency check and the webhook address with a button to register it
Public key, private key and the webhook: all you set up once.

Once saved, the private key never appears in the page again. The field stays empty with a note that it is saved, so a coworker who opens the settings cannot read it by looking at the page source.

Step 2: Register the Webhook

A webhook is a short message that Unzer sends to your site when a payment changes. Below the keys you see the webhook address of your site. Press the register button and the add-on creates the webhook through the API. If it already exists, the page says so and nothing is created twice.

Here is a design choice worth knowing. A webhook is only a message from the internet, and anyone can send one. Instead of trusting it, the add-on uses only the payment number from it, asks the Unzer API for that payment at the official address, and checks which payment page it belongs to. It also compares the amount and the currency with your entry. A forged message that claims a payment succeeded achieves nothing, because the real answer says the payment is still waiting. A message that points at some other address is never followed.

Step 3: Add an Unzer Feed to Your Form

Open the form in the Gravity Forms editor and make sure it has a product field or a total field, and an email field. Then open the form settings, choose Unzer and add a feed. Pick Products and Services for orders and bookings, or Donations. Leave the payment amount on the form total.

Several optional settings make the payment page better. The description is the text in your Unzer account, and merge tags work, so you can include the entry number. The basket sends the ordered items, which pay later methods need. The VAT rate is sent with the items. The payment method boxes let you show only some methods, in the order you tick them. The language can follow the visitor or be fixed.

Map the billing fields as well: email, first name, last name, street, postcode, city and country. Unzer receives them as the customer, so methods such as invoice can work and your customer does not type the details twice. If you prefer, let Unzer ask for the details on its own page.

Step 4: Make a Test Payment

With the sandbox keys, open your form, fill it in and press the button. You land on the Unzer page, pay with a test payment method and come back. Your form shows its confirmation, and the entry shows Paid with a Sandbox payment badge, so nobody mistakes it for a sale.

If you press the back button before paying, the page you return to says that your payment is being confirmed and checks again by itself every few seconds. This protects you from the common case where the customer is faster than the webhook.

What Happens to the Entry

Open the entry in Forms, Entries. The Unzer box on the right shows the status, the reference, the payment number, the charge number, the payment page, the payment method and the amounts. The notes list every step with the source of the news: the return page, a webhook, the status check or the entry screen.

A Gravity Forms entry with an Unzer box that shows the sandbox badge, status, reference, payment, charge, payment page, payment method, amounts and a refund button, and entry notes that tell what happened
Every entry says what happened, and the Unzer box lets you refund from the entry screen.
  • A confirmed charge sets the entry to Paid and fires your payment completed notification.
  • A declined payment sets it to Failed. A payment page that nobody paid on for an hour sets it to Cancelled. Both fire the failed notification.
  • If the amount or the currency in Unzer differs from the entry, the entry is not marked as paid, and a note explains it.
  • If the customer fails once and pays on the same page afterwards, the entry becomes Paid.
  • A payment that takes days, such as a bank transfer in advance, stays on Processing until the money is reported.

Step 5: Refund From the Entry Screen

When you need to give money back, open the entry. Enter the amount, up to what is left, and press Refund. The add-on reads the payment first, so the limit is the one Unzer reports, and then asks Unzer to cancel the charge for that amount. The entry turns to Partially Refunded or Refunded and your refund notification goes out.

A one-time request number protects the button, so reloading the page and pressing it again never refunds twice. If you refund in your Unzer account instead, press Refresh status on the entry, or wait for the next webhook, and the entry follows.

Why a Hosted Payment Page Is the Safer Choice

Putting card fields on your own form means your site handles card data, and with it a long list of security duties. A hosted page moves that work to the payment provider. Your visitor types the card number on a page that belongs to Unzer, and your server only learns whether the payment worked. For a small business with a booking form this is the simple and sensible way to take cards.

It also keeps your forms fast and your page clean. The form stays a normal Gravity Forms form, and the payment step is a single redirect. When something goes wrong, for example the customer closes the browser on the payment page, the webhook and the five-minute check still bring the right status into the entry.

Currencies and Amounts

The add-on works with euros, Swiss francs, pounds, dollars and a handful of other currencies. The amount is worked out on the server from the entry and sent to Unzer as an exact decimal, so a total of 264.90 euros is sent as 264.9000. Nothing the visitor does in the browser can change what is charged. Which currencies a customer can really pay in depends on the methods activated in your Unzer account, so make one test payment for each currency you use.

Good Habits Before You Go Live

  • Use HTTPS on your site, so customers return to a secure page and Unzer can deliver webhooks.
  • Check that WordPress scheduled tasks run. The add-on checks waiting payments every five minutes, which makes a missed webhook harmless.
  • Send form notifications only after the payment is confirmed, with the option in the feed, so your team is not told about unpaid orders.
  • Make one test payment for each currency and each payment method you offer, then swap in the production keys.
  • Keep the private key private and ask Unzer for a new one if you ever think it was seen.

Questions People Ask

Do card details touch my website?

No. The customer pays on the Unzer page. Your site never sees card data.

Do I need a developer?

No. You enter two keys, press one button and add a feed. Everything else works from the settings pages.

Can I offer PayPal, SEPA direct debit or invoice?

Yes, if they are activated in your Unzer account. They appear on the Unzer page, and you can limit the list in the feed. Invoice and similar methods need the customer details and the basket.

What about subscriptions?

This version handles one-time payments and donations.

The Gravity Forms Unzer Payment Gateway Premium Add-on is part of the GravityExtra collection. It works with the Gravity Forms payment framework, so conditional logic and delayed feeds of other add-ons work as usual.

See the Unzer add-on

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