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

Gravity Forms Payrexx Payment Gateway Premium Add-on Setup Guide

Updated 9 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 Payrexx Account
  6. Step 2: Add 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 a Payrexx 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 Payrexx Payment Gateway Setup Guide: Instance Name & API Secret (WordPress Side)
Video setup guide: Gravity Forms Payrexx Payment Gateway Watch on YouTube

The Payrexx Payment Gateway add-on connects Gravity Forms to Payrexx, the payment platform from Switzerland that gives one account access to cards, TWINT, PostFinance and many other payment methods. A booking, order, registration or donation form sends the customer to the secure Payrexx payment page, and when the payment is done the entry is updated by itself: paid, failed, cancelled or refunded. You enter your own Payrexx instance name and API secret, and nothing else is needed.

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 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 Payrexx 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, sent in the smallest unit of the currency. CHF, EUR, USD, GBP and more, including currencies that have no decimals.
  • A purpose text with merge tags, an optional VAT rate and an optional list of payment methods for each feed.
  • Name, email, address and phone from your form sent to Payrexx, so the customer sees them filled in.
  • Every result read from the Payrexx 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 the Payrexx dashboard 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 Payrexx side you need an account with at least one payment method activated, because the API creates payment pages for the methods of your account. Your site should use HTTPS, so the customer comes back to a secure page and the webhook can be delivered safely. Only the license check talks to gravityextra.com, when you press Activate. Every other outside request goes to the Payrexx API.

Quick Start

  1. Install and activate the add-on, then activate your license key under Forms, Settings, Payrexx.
  2. Enter your Payrexx instance name and API secret and save. The add-on checks them with Payrexx and shows Connected to Payrexx.
  3. Copy the webhook address from the same page into Payrexx.
  4. Build a form with a product or total field and an email field, open the form settings, choose Payrexx and add a feed.
  5. Submit a test entry with a payment method that is in test mode in your Payrexx account, and watch the entry turn to Paid.
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.

Step 1: Connect Your Payrexx Account

The instance name is the first part of the address you use to log in to Payrexx. If you open example.payrexx.com, the instance name is example. You can also paste the whole address and the add-on shortens it for you. The API secret is created in the Payrexx dashboard under Integrations, API and Plugins.

When you save, the add-on asks Payrexx to check the pair with the SignatureCheck call of the Payrexx API. If Payrexx does not accept it, nothing is saved, the old values stay and you see a clear message. A network problem on your side never blocks saving. Press Test the connection again at any time to check the saved values.

The saved secret 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 secret stays. Only a part of it is shown as a hint under the connection message. If you change the instance name you enter the secret again.

Payrexx has no separate test server. Test payments are made with a payment method that is in test mode inside your account, and the add-on shows a Test payment badge on such entries.

Step 2: Add the Webhook

A webhook tells your site at once when something happens to a payment. In Payrexx open Settings, API and Plugins, Webhooks, and add the address shown on the add-on settings page. Tick Transaction and choose JSON, or the normal PHP-Post format, as the content type. Switching on the retries is a good idea: Payrexx then tries again if your site was not reachable.

The add-on never trusts what a webhook says. The Payrexx webhook has no signature that your site could check, so the add-on takes only the transaction number from it and reads the transaction from the Payrexx API with your secret. Only that answer is used. A forged request that claims a payment is confirmed changes nothing, because the API still says it is waiting.

Step 3: Create the Feed

Open the settings of your form and choose Payrexx, 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 Payrexx only when the customer chooses to pay online.

  • Payment purpose: the text shown on the Payrexx page and in your dashboard, for example Workshop booking and the entry number. Merge tags work. The ordered items are added after it.
  • VAT rate: optional. Enter the percentage included in your prices, for example 8.1. Leave it empty to use the rate set in Payrexx.
  • Payment methods: optional. Names of the methods to show, separated by commas, for example visa, mastercard, twint and postfinance-card. Leave it empty to show every method of your account.
  • Billing fields: map the email, first name, last name, company, street, postcode, city and phone to the fields of your form. They are sent to Payrexx with the payment.
  • 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 a Payrexx 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 Payrexx page, or cancels, or the payment is declined.
  4. The customer comes back to your form through a signed link. The add-on reads the transaction from the API. If it is paid, the confirmation of your form is shown. If Payrexx 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 reference of the transaction 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 Payrexx account.

Payment Statuses and Notes

  • Paid: Payrexx confirmed the payment. The payment amount, the transaction number and the payment method, such as visa or twint, are saved on the entry.
  • Failed: the payment was declined, Payrexx reported an error, or the payment page could not be created.
  • Cancelled: the customer cancelled on the Payrexx page.
  • Partially Refunded and Refunded: money went back to the customer.

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 and a refund that is waiting for the bank are noted once, however often Payrexx reports them. A customer who first fails and then pays on the same page is handled too: the entry becomes Paid.

Refunds From the Entry Screen

Open the entry. The Payrexx box shows the status, the references and the amounts. Enter an amount, up to what is left, and press Refund. The add-on first reads the transaction from Payrexx, so the limit is the one Payrexx reports, then asks Payrexx to refund. A confirmation, a nonce, a capability check and a one-time request number protect the button, so a double click or a reload never refunds twice.

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.

The entry turns to Partially Refunded or Refunded and the refund notification event is sent. If Payrexx tells you a payment cannot be refunded through the API, for example because the payment method does not allow it, the box says so and you refund it in the Payrexx dashboard. The add-on picks that refund up with Refresh status or with the next webhook.

Currencies

The add-on offers CHF, EUR, USD, GBP, AUD, CAD, CZK, DKK, HKD, HUF, JPY, NOK, NZD, PLN, RON, SEK, SGD and ZAR. Set the currency of your forms under Forms, Settings, Currency. Which of them a customer can really pay in depends on the payment methods activated in your Payrexx account. Amounts are sent in the smallest unit of the currency, so CHF 264.90 becomes 26490, and a currency without decimals, such as JPY, is sent as it is. If a form uses a currency the add-on does not offer, the customer sees a clear message and no entry is created.

Security

  • Card data is entered on the Payrexx page only. Your site never sees it.
  • The API secret stays on your server, is never sent to the browser and is never written into a page.
  • The amount comes from the server side entry. Nothing the browser sends can change it.
  • Webhooks are only a signal. The transaction is always read again from the Payrexx API.
  • 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 Payrexx did not accept the values. Check the instance name and create a new API secret in the Payrexx dashboard.
  • Entries stay Processing. Add 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 Payrexx page. Check the list of payment methods in the feed and the methods activated in your Payrexx account for that currency.
  • The entry says the payment does not match. The amount or currency in Payrexx differs from the entry. Check the transaction in the Payrexx dashboard.

Questions People Ask

Do I need a Payrexx test account?

You need your own Payrexx account. Use a payment method that is in test mode there for your first payments. The add-on marks those entries as test payments.

Can customers pay inside my form?

No. They pay on the secure Payrexx 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 Payrexx Payment Gateway is part of the GravityExtra collection of Gravity Forms add-ons. See the Gravity Forms Payrexx Payment Gateway Premium Add-on for the details.

See the Payrexx 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