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

Gravity Forms Unzer Payment Gateway Premium Add-on Setup Guide

Updated 10 min read Gravity Forms Payments & Pricing
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Quick Start
  5. Step 1: Connect Your Unzer Account
  6. Step 2: Register the Webhook
  7. Step 3: Create the Feed
  8. How a Payment Flows
  9. Payment Statuses and Notes
  10. Refunds From the Entry Screen
  11. Currencies
  12. Security
  13. Troubleshooting
  14. Questions People Ask
  15. Do I need an Unzer test account?
  16. Can customers pay inside my form?
  17. Are subscriptions supported?
  18. Does it work with delayed feeds of other add-ons?

Video walkthrough

Gravity Forms Unzer Payment Gateway Setup Guide: Public & Private Key (WordPress Side)
Video setup guide: Gravity Forms Unzer Payment Gateway Watch on YouTube

The Unzer Payment Gateway add-on connects Gravity Forms to Unzer (the company that used to be called Heidelpay), a payment provider that is strong in Germany, Austria and Switzerland and gives one account access to cards, PayPal, SEPA direct debit, invoice, installments and many local methods. A booking, order, registration or donation form sends the customer to the secure Unzer payment page, and the Gravity Forms entry follows the payment by itself.

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 You Get

  • A feed for one-time payments, for Products and Services and for Donations, using the Gravity Forms payment framework, so conditional logic and delayed feeds for other add-ons work as usual.
  • The Unzer hosted payment page for the checkout. There are no card fields on your site, so card data never touches your server.
  • The amount worked out on the server from the entry and sent as an exact decimal. EUR, CHF, GBP, USD and more.
  • A description with merge tags, the ordered items as a basket, an optional VAT rate and a choice of payment methods and page language for each feed.
  • Name, email and billing address from your form sent to Unzer as the customer, so pay later methods can work and the customer does not type them twice.
  • Sandbox or live mode read from your keys, a connection test and a button that registers the webhook through the Unzer API.
  • Every result read from the Unzer API again: after the customer comes back, when a webhook arrives and every five minutes for payments that are still waiting.
  • Payment status, entry notes and the Gravity Forms payment events: payment completed, refunded, failed or cancelled.
  • Full and partial refunds from the entry screen. Refunds and chargebacks made in your Unzer account show up on the entry too.

Requirements

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer and PHP 7.4 or newer. On the Unzer side you need an account with at least one payment method activated, because the payment page offers the methods of your account. Unzer gives you a pair of sandbox keys for testing and a pair of production keys when your contract is active. Your site must use HTTPS: customers should return to a secure page, and Unzer sends webhooks to HTTPS addresses only.

Quick Start

  1. Install and activate the add-on, then activate your license key under Forms, Settings, Unzer.
  2. Enter your public key and private key and save. The add-on checks them with Unzer and shows Connected to Unzer and the mode, Sandbox or Live.
  3. Press Register the webhook at Unzer on the same page.
  4. Build a form with a product or total field and an email field, open the form settings, choose Unzer and add a feed.
  5. Submit a test entry with your sandbox keys and watch the entry turn to Paid.
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.

Step 1: Connect Your Unzer Account

Copy the public key and the private key from your Unzer account. Sandbox keys start with s- (s-pub- and s-priv-) and production keys start with p- (p-pub- and p-priv-). The add-on reads the mode from the prefix, so there is no separate test switch to forget. Both keys must be from the same mode, and the add-on tells you if they are not.

When you save, the add-on exchanges the private key for a short-lived access token with the Unzer token service and then asks the Unzer API which public key belongs to it. If Unzer does not accept the private key, or the public key does not belong to it, nothing is saved, the old values stay and you see a clear message. A network problem on your side never blocks saving.

The saved private key is kept on your server only. It is not written into the settings page, so the field stays empty with a note that it is saved. Leave it empty when you save other changes and the saved key stays. Only the first and last characters are shown as a hint under Connection.

Entries made with sandbox keys carry a Sandbox payment badge and a note, so a test is never mistaken for a sale. If you switch the keys later, an old entry is not read with the new keys: the entry box tells you so.

Step 2: Register the Webhook

A webhook tells your site at once when something happens to a payment. On the settings page you see the webhook address of your site and whether Unzer already knows it. Press Register the webhook at Unzer and the add-on creates a webhook for the payment events through the API. It asks Unzer for the existing webhooks first, so pressing the button twice never creates a second one. You can also add the address yourself in your Unzer account.

The add-on never trusts what a webhook says. It takes only the payment number from the message and reads the payment from the Unzer API at the real Unzer address, never at an address sent inside the message. It then finds the payment page of that payment, reads that again, and compares the amount and the currency with the entry. Only that answer is used. A forged message that claims a payment succeeded achieves nothing.

Step 3: Create the Feed

Open the settings of your form and choose Unzer, then add a feed. Choose the transaction type, Products and Services or Donations, and the payment amount, usually the form total. Conditional logic lets you use Unzer only when the customer chooses to pay online.

  • Payment description: shown with the order in your Unzer account, for example the course booking and the entry number. Merge tags work. The ordered items are added after it.
  • Name shown on the payment page: optional. Leave it empty to use the name of your site.
  • Customer details on the page: choose whether Unzer asks for no details, for the billing address, or for billing and shipping address. Pay later methods need customer details, so either map the billing fields or let Unzer ask.
  • Order items: send the ordered items to Unzer as a basket. The basket is only sent when the items add up to the amount exactly, so a coupon or a rounding difference never produces a rejected payment.
  • VAT rate: optional. Enter the percentage included in your prices, for example 19. It is sent with the basket items.
  • Payment methods: optional boxes. Tick the methods to offer and the page shows only those, in that order. Leave all unticked to show every method activated in your account.
  • Payment page language: the language of the visitor’s browser, or one of the languages Unzer supports.
  • Billing fields: map email, first name, last name, street, postcode, city and country. A first name, a last name and a valid email are the minimum for a customer. The address is sent when it is complete.
  • Notifications: tick the option to send the form notifications only after the payment is confirmed, so your team is not told about orders that were never paid.

How a Payment Flows

  1. The customer sends the form. The add-on works out the amount on the server from the entry, never from the browser.
  2. The add-on creates an Unzer hosted payment page for that amount, with a reference that identifies the entry, and sends the customer there. The entry is Processing.
  3. The customer pays on the Unzer page, or leaves, or the payment is declined.
  4. The customer comes back to your form through a signed link. The add-on reads the payments of that payment page from the API. If one is paid, the confirmation of your form is shown. If Unzer has not confirmed it yet, a waiting message checks again by itself a few times.
  5. A webhook or the check every five minutes completes the picture, for example when the customer closed the browser before coming back.

The amount, the currency and the payment page of the payment must match the entry. If they do not, the entry is not marked as paid and an error note explains why. This also protects you if someone changes a payment in your Unzer account.

Payment Statuses and Notes

  • Paid: Unzer confirmed the charge. The payment amount, the payment number and the payment method, such as Card or PayPal, are saved on the entry.
  • Failed: the payment was declined, Unzer reported an error, or the payment page could not be created. If the customer fails once and pays on the same page afterwards, the entry becomes Paid.
  • Cancelled: an Unzer payment page is valid for 60 minutes. If nobody paid on it by then, the entry is cancelled with a note and your failure notification goes out. A customer who clicks cancel on the page does not change the entry at once, because the return link alone is never trusted.
  • Partially Refunded and Refunded: money went back to the customer.

Payments that need days, such as a prepayment by bank transfer, stay on Processing until Unzer reports the money. The add-on does not cancel them. Each step adds an entry note, with the amount, the reference and where the news came from: the return page, a webhook, the status check or the entry screen. A chargeback is noted once, however often Unzer reports it.

Refunds From the Entry Screen

Open the entry. The Unzer box shows the status, the payment, the charge, the payment page and the amounts. Enter an amount, up to what is left, and press Refund. The add-on first reads the payment from Unzer, so the limit is the one Unzer reports, then cancels the charge for that amount, which is how Unzer names a refund. A one-time request number protects the button, so reloading the page and pressing it again never refunds twice.

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.

The entry turns to Partially Refunded or Refunded and the refund notification event is sent. If Unzer refuses the refund, the entry keeps its status and the reason from Unzer is shown and written as a note. A refund made in your Unzer account is picked up with Refresh status or by the next webhook.

Currencies

The add-on offers EUR, CHF, GBP, USD, AUD, BGN, CAD, CZK, DKK, HUF, NOK, PLN, RON and SEK. Set the currency of your forms under Forms, Settings, Currency. Which of them a customer can really pay in depends on the payment methods and channels activated in your Unzer account, so make one test payment for each currency you plan to use. If a form uses a currency the add-on does not offer, the visitor sees a clear message and no entry is created.

Security

  • Card data is entered on the Unzer page only. Your site never sees it.
  • The private key stays on your server, is never sent to the browser and is never written into a page. Access tokens are cached on the server for a few minutes.
  • The amount comes from the server side entry. Nothing the browser sends can change it.
  • Webhooks are only a signal. The payment is always read again from the Unzer API, and its payment page must be the one of the entry.
  • Return links are signed. Entry screen buttons need a nonce and the right capability.
  • Without an active license no payment is started.

Troubleshooting

  • The settings say Unzer did not accept the private key. Copy the key again from your Unzer account. A sandbox key and a production key cannot be mixed.
  • Entries stay Processing. Register the webhook, and check that the customer can come back to your site. The status check every five minutes also needs WordPress scheduled tasks to run, so a real cron job helps on quiet sites.
  • A payment method is missing on the Unzer page. Check the boxes in the feed and the methods activated in your Unzer account for that currency and country. Invoice, installment and similar methods also need customer details and the basket.
  • The webhook cannot be registered. Unzer sends webhooks to HTTPS addresses only. Use an HTTPS site address.
  • The entry says the payment does not match. The amount or currency in Unzer differs from the entry. Check the payment in your Unzer account.

Questions People Ask

Do I need an Unzer test account?

You need your own Unzer account. Unzer gives you sandbox keys for it. Use them for your first payments. The add-on marks those entries as sandbox payments.

Can customers pay inside my form?

No. They pay on the secure Unzer page. That is on purpose: card data never touches your site.

Are subscriptions supported?

Not in this version. The add-on handles one-time payments and donations.

Does it work with delayed feeds of other add-ons?

Yes. The add-on uses the Gravity Forms payment framework, so other add-ons can wait for the payment to be completed.

The Unzer Payment Gateway is part of the GravityExtra collection of Gravity Forms add-ons. See the Gravity Forms Unzer Payment Gateway Premium Add-on for the details.

See the Unzer add-on

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