🎉 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 Payrexx Payments in a Gravity Forms Form

GravityExtra
How to Accept Payrexx Payments in a Gravity Forms Form

Swiss and European customers like to pay with the methods they know: a card, TWINT, PostFinance or an invoice. Payrexx is a payment platform from Switzerland that gathers many of them behind one account, one dashboard 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 Payrexx and to bring the result back into the entry. This guide shows how to do that with the Gravity Forms Payrexx Payment Gateway Premium Add-on, step by step.

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

What the Result Looks Like

A visitor fills in your Gravity Forms form, for example a workshop booking with two products and a total in Swiss francs. After sending it, the visitor lands on a secure Payrexx payment page that shows the amount and the purpose of the payment. 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, the payment details are saved on it, and your notifications go out. If the visitor cancels or the payment is declined, the entry says so and no booking mail is 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.
  • A Payrexx account with at least one payment method activated.
  • The Payrexx Payment Gateway add-on and its license key.

There is no extra account and no sandbox to request. You enter your own instance name and API secret, and the add-on talks to the public Payrexx API.

Step 1: Find Your Instance Name and Create an API Secret

Log in to Payrexx and look at the address in your browser. If it reads example.payrexx.com, then example is your instance name. In the dashboard open Integrations, then API and Plugins, and create an API secret. Copy it once. It is the key that lets your site create payment pages and read transactions, so treat it like a password.

In WordPress open Forms, Settings and Payrexx. Enter the instance name and the secret and press Save. The add-on asks Payrexx to check the pair. If it is correct you see Connected to Payrexx with the instance name and a short hint of the secret. If it is wrong, nothing is saved and the message tells you so.

The Payrexx settings in Gravity Forms: instance name, API secret, a connected message, the currency check and the webhook address to copy into Payrexx
Instance name, API secret and the webhook address: all you set up once.

Once saved, the secret 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: Tell Payrexx Where to Send Webhooks

A webhook is a short message that Payrexx sends to your site when a payment changes. Copy the webhook address from the settings page. In Payrexx open Settings, API and Plugins, add a webhook with that address, tick Transaction and choose JSON as the content type. Turn on the retries, so a message is sent again if your site was busy.

Here is a design choice worth knowing. The Payrexx webhook has no signature that a website can verify. Instead of trusting the message, the add-on uses only the transaction number from it and asks the Payrexx API for the transaction with your secret. A forged message that claims a payment succeeded achieves nothing, because the real answer says the payment is still waiting.

Step 3: Add a Payrexx 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 Payrexx and add a feed. Pick Products and Services for orders and bookings, or Donations. Leave the payment amount on the form total.

Three optional settings make the payment page better. The purpose is the text on the page and in your dashboard, and merge tags work, so you can include the entry number. The VAT rate tells Payrexx which percentage is included in your prices, for example 8.1 for Switzerland. The payment methods list lets you show only some methods, such as visa, mastercard, twint and postfinance-card.

Map the billing fields as well: email, first name, last name, company, street, postcode, city and phone. Payrexx shows them on the payment page, so your customer does not type them twice, and you see them next to the transaction in your dashboard.

Step 4: Make a Test Payment

Payrexx does not run a separate test server. You test with a payment method that is in test mode in your account. Open your form, fill it in and press the button. You land on the Payrexx page, pay with the test method and come back. Your form shows its confirmation, and the entry shows Paid with a Test payment badge.

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 Payrexx box on the right shows the status, the reference, the transaction number, the gateway number, 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 a Payrexx box that shows the status, reference, transaction, gateway, payment method, amount and a refund button, and entry notes that tell what happened
Every entry says what happened, and the Payrexx box lets you refund from the entry screen.
  • A confirmed payment sets the entry to Paid and fires your payment completed notification.
  • A cancelled payment sets it to Cancelled. A declined one sets it to Failed. Both fire the failed notification.
  • If the amount or the currency in Payrexx 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.

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 transaction first, so the limit is the one Payrexx reports, and then asks Payrexx to refund. 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 the Payrexx dashboard 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 Payrexx, and your server only learns whether the payment worked. For a small business with a booking form this is the simple and sensible way: less risk for you, less to explain to your customers, and every payment method of your Payrexx account is available without extra work on your side.

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 CHF, EUR, USD, GBP and a dozen more currencies. Payrexx expects the amount in the smallest unit, so a total of CHF 264.90 is sent as 26490. For a currency without decimals, such as the yen, the amount is sent as it is. The add-on does this for you, from the server side entry, so nothing the visitor does in the browser can change what is charged.

Good Habits Before You Go Live

  • Use HTTPS on your site, so customers return to a secure page.
  • 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.
  • Keep the API secret private and create a new one in Payrexx if you ever think it was seen.

Questions People Ask

Do card details touch my website?

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

Do I need a developer?

No. You enter two values, copy one address and add a feed. Everything else works from the settings pages.

Can I use TWINT and PostFinance?

Yes, if they are activated in your Payrexx account. They appear on the Payrexx page, and you can limit the list in the feed.

What about subscriptions?

This version handles one-time payments and donations.

The Gravity Forms Payrexx 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 Payrexx 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