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

Gravity Forms Revolut Pay Premium Add-on Setup Guide

Updated 11 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Get your Merchant API secret key
  4. Connect the add-on
  5. Add a Revolut Pay feed to a form
  6. Feed options
  7. What the customer sees
  8. Payment statuses and notes
  9. Webhooks, verified
  10. The five-minute status check
  11. Capture, cancel and refunds from the entry screen
  12. Amounts, currencies and safety checks
  13. Going live
  14. Troubleshooting
  15. Privacy and data
  16. Uninstalling
  17. For developers

Video walkthrough

Gravity Forms Revolut Pay Setup Guide: Sandbox, Secret Keys & Webhook (WordPress Side)
Video setup guide: Gravity Forms Revolut Pay Watch on YouTube

The Gravity Forms Revolut Pay Premium Add-on lets your Gravity Forms take payments through the Revolut Merchant API. When someone submits a form, the add-on creates a Revolut order on your server for the exact form total and sends the customer to the Revolut hosted checkout page, where they pay with Revolut Pay, a card, Apple Pay or Google Pay (whichever methods are enabled on your merchant account). When the customer comes back, the add-on reads the order from Revolut and updates the entry.

You use your own Revolut Business merchant account and your own Merchant API secret key, so the money goes straight to your Revolut account. There is a sandbox mode for testing with test cards and a live mode for real payments. This guide covers the setup, every option, webhooks, capture and refunds, and what happens when a payment is declined, cancelled or fails.

What you need

  • WordPress with Gravity Forms 2.9 or newer.
  • PHP 7.4 or newer, with the openssl extension (used to encrypt the keys).
  • An active license key for this add-on.
  • A Revolut Business account with Merchant (online payments) set up. For testing, a free Revolut Business sandbox account.
  • An HTTPS site address for live payments. Revolut only sends webhooks to HTTPS addresses.

If Gravity Forms is missing or older than 2.9, the add-on shows a notice in the WordPress admin and does nothing else.

Get your Merchant API secret key

The add-on signs every request to Revolut with your secret key. You find it in Revolut Business:

  1. For tests, log in to the Revolut Business sandbox at sandbox-business.revolut.com. For real payments, log in to your normal Revolut Business account.
  2. Open Merchant, then APIs (in some accounts: Settings → APIs → Merchant API).
  3. Copy the secret key. It starts with sk_. Do not use the public key (pk_); the add-on refuses it and tells you so.

Treat the secret key like a password. Anyone with it can create orders and refunds on your account. The add-on stores it encrypted and never shows it again in full.

Connect the add-on

  1. Install and activate the add-on, then open Forms → Settings → Revolut Pay and activate your license key.
  2. Leave Mode on Sandbox for your first tests.
  3. Paste the sandbox secret key into Sandbox secret key and click Save Settings.
  4. The add-on checks the key with Revolut before it saves it. A key Revolut does not accept is not saved, and the old key stays in place. When the key works, the Connection line turns green and shows the key masked, for example sk_••••••••9f2c.
  5. In the same save, the add-on registers its webhook with Revolut. The Webhook line shows the webhook address and “Registered with Revolut”.
The Revolut Pay settings page in Gravity Forms: license key, mode, sandbox and live secret keys stored encrypted, the currency, the live connection and the registered webhook
The settings page: mode, the two secret keys (stored encrypted), the connection check and the webhook Revolut calls.

Keys are encrypted with AES-256-GCM using a key derived from your site’s security salts, so a copy of the database alone does not reveal them. If you ever change the salts in wp-config.php, paste the secret key again.

Add a Revolut Pay feed to a form

A feed tells the add-on which form takes payments and how. Your form needs at least one pricing field (a Product, and usually a Total).

  1. Open the form, go to Settings → Revolut Pay and click Add New.
  2. Choose the Transaction Type: Products and Services or Donations. Subscriptions are not offered; every payment is a one-time payment.
  3. Set Payment Amount to Form Total (or a single product field).
  4. Map the billing information: email, full name and phone. They are sent with the order so Revolut can show them on the checkout page and send a receipt. The phone is only sent when it is in international format, for example +353 86 123 4567.
  5. Pick the capture mode and write the order description (see below), then save the feed.
The Revolut Pay feed settings in Gravity Forms: payment amount, customer email, name and phone, capture mode, order description and notification option
A Revolut Pay feed: the amount, the customer fields, automatic or manual capture and the order description.

Feed options

Option What it does
Capture Automatically (default): the money is taken as soon as the customer pays. Manually: the amount is only authorised on the card or account; you capture or cancel it from the entry screen, for example after you confirm a booking. Revolut releases an authorisation that is never captured after a few days.
Order description Shown on the checkout page and in your Revolut dashboard. Merge tags work, for example Retreat booking #{entry_id}. The default is {form_title} #{entry_id}.
Notifications When ticked (the default), the form notifications that fire on submission are held until the customer has paid, so a booking email is never sent for an unpaid entry. They are sent once, as soon as the payment is confirmed.
Conditional logic The usual Gravity Forms condition: the payment is only taken when the condition matches.

What the customer sees

The customer fills in the form and clicks the submit button. The add-on works out the amount on the server from the entry (never from the browser), creates the Revolut order and sends the customer to the Revolut checkout page.

A front-end Gravity Form for booking a weekend retreat with name, email, mobile number, two products and a total, with a Continue to payment button
A booking form on the site. The total is worked out by Gravity Forms and sent to Revolut on the server.

After paying, the customer comes back to your form and sees your normal Gravity Forms confirmation (a message, a page or a redirect). Before showing it, the add-on reads the order from Revolut. If Revolut is still processing the payment, a short “Confirming your payment” message is shown and the page checks again by itself every few seconds.

  • Declined card: the customer sees “Your payment was declined. You have not been charged.” with a Try the payment again link to the same checkout, so they can use another card or Revolut Pay.
  • Cancelled: “The payment was cancelled. You have not been charged.” with a link back to the form.
  • Failed: “The payment was not completed, so you have not been charged.”
  • Revolut could not be reached when the order was created: “We could not start the payment with Revolut. You have not been charged.” The entry is marked Failed with the reason in a note.

Payment statuses and notes

Each payment is a normal Gravity Forms payment, so it shows in the entry list, the entry’s Payment Details and the Sales reports.

Status Meaning
Processing The customer has been sent to the checkout, or Revolut is still processing the payment.
Paid The order is completed: the money is taken.
Authorized Manual capture only: the amount is held and waits for you to capture it.
Partially Refunded / Refunded Part or all of the payment was refunded, here or in the Revolut dashboard.
Voided A held (authorised) amount was cancelled and released to the customer.
Cancelled The order was cancelled before it was paid.
Failed The payment failed, or the order did not match the entry (see below).

The add-on adds a note for every step: when the customer was sent to the checkout (amount, order ID, reference, mode and capture mode), when the payment was completed or authorised (and from where: the return, a webhook, the status check or the entry screen), declined attempts with the reason, refunds and errors. In sandbox mode every note says “Sandbox” so test payments are easy to tell apart.

The payment method is recorded as Revolut Pay, Card, Apple Pay or Google Pay, based on how the customer paid. Gravity Forms notification events are available for Payment Completed, Payment Authorised, Payment Refunded, Payment Failed or Cancelled and Authorisation Cancelled.

Webhooks, verified

Webhooks let Revolut tell your site at once when an order is completed, authorised, cancelled or failed, even if the customer closes the browser before coming back. The add-on registers its webhook for the events ORDER_COMPLETED, ORDER_AUTHORISED, ORDER_CANCELLED, ORDER_FAILED, ORDER_PAYMENT_DECLINED and ORDER_PAYMENT_FAILED when you save a working key, and the button Register the webhook again replaces it if you ever need to.

Every webhook is checked before anything happens:

  • The Revolut-Signature header must match an HMAC-SHA256 of the timestamp and the raw body made with the webhook’s signing secret. The signing secret is stored encrypted.
  • The Revolut-Request-Timestamp must be within five minutes of your server’s clock, so an old request cannot be replayed.
  • A request that fails either check is answered with HTTP 401 and changes nothing.
  • A webhook from the sandbox never changes a live entry, and the other way round.
  • The webhook body is only a signal: the add-on always reads the order again from the API before it changes the entry.

Gravity Forms also remembers each webhook it has processed, and every status change is made only once from the entry’s current status. Revolut can send the same event twice, a webhook can arrive at the same moment as the customer’s return, and the status check can run in between: the entry is still marked paid exactly once, with one note and one set of notifications.

The five-minute status check

Every five minutes, a scheduled task reads the orders of entries that are still Processing (from the last three days). A missed webhook therefore never leaves an entry waiting, and payments are confirmed even on a site without HTTPS during testing.

Capture, cancel and refunds from the entry screen

Open an entry to see the Revolut Pay box: the status, the Revolut order state, the order ID, the reference, the amount and how much is refunded.

A Gravity Forms entry screen with the order, Payment Details showing Paid, the Revolut Pay box with the order ID, amount, refund field and Refresh status, and the payment notes
A paid entry: the Revolut order ID, the status, the refund box and the notes written by the add-on.
  • Capture (manual capture only): takes the authorised amount. The entry becomes Paid.
  • Cancel the authorisation: releases a held amount to the customer. The entry becomes Voided.
  • Cancel the order: for an order the customer has not paid yet; they can no longer pay it.
  • Refund: type the amount (the rest of the payment is filled in for you) and confirm. Partial refunds are possible until the whole amount is refunded. Revolut can take a moment to complete a refund; the entry updates when it is done.
  • Refresh status: reads the order from Revolut now, for example after a refund made in the Revolut dashboard.

Every action asks for confirmation, checks a security token and the user’s permission to edit entries, and carries a one-time request ID, so a double click or a reloaded page never sends a refund twice. Refunds also carry an idempotency key, which Revolut uses to ignore a repeated request.

Amounts, currencies and safety checks

  • The amount is the Gravity Forms total, converted to minor units the way Revolut expects: cents for EUR, pence for GBP, whole units for currencies without decimals such as JPY and ISK.
  • The order is created in your Gravity Forms currency (Forms → Settings → Currency). It must be a currency your Revolut merchant account accepts; if Revolut refuses it, the customer sees a friendly message and the reason is in the entry note.
  • When the order is created, its amount and currency must match the form total, and the checkout address must be a Revolut HTTPS address. Otherwise the customer is never sent there.
  • Every time the order is read, its amount and currency are compared with the entry again. An order that does not match is never marked as paid; the entry gets one error note asking you to check the order in your dashboard.

Going live

  1. Make a few sandbox payments with the Revolut test cards: one successful, one declined, one cancelled, and try a refund.
  2. In Revolut Business, copy the production secret key.
  3. In Forms → Settings → Revolut Pay, choose Live, paste the key into Live secret key and save. The add-on checks the key with the live API and registers the live webhook.
  4. Make one small real payment and refund it from the entry screen.

Entries keep the mode they were paid in, so you can still refresh and refund older sandbox entries after you switch to live.

Troubleshooting

What you see What to do
“Revolut did not accept this key” The key is wrong, from the other mode, or was revoked. Sandbox keys only work in Sandbox mode and production keys only in Live mode.
“This is the public key” You pasted the pk_ key. Paste the secret key that starts with sk_.
Webhook “Not registered” Revolut allows ten webhook addresses per account. Remove unused ones in Revolut Business, then click Register the webhook again.
Entries stay Processing The customer did not finish paying, or webhooks cannot reach your site. Check that the site uses HTTPS and is not behind a login; the status check confirms paid orders within five minutes anyway.
Webhook answered 401 The signing secret changed or the server clock is wrong. Register the webhook again and check the server time.
“Online payment is not available” on the form The license is not active or no secret key is saved for the selected mode.

Privacy and data

The add-on only contacts the Revolut Merchant API (merchant.revolut.com in live mode, sandbox-merchant.revolut.com in sandbox mode). It sends the amount, the currency, the order description, a reference to the entry and the customer’s email, name and phone when you map them. Card details are entered on the Revolut checkout page and never touch your site. Keys and signing secrets are never written to logs or notes.

Uninstalling

Uninstalling the add-on from Forms → Settings → Uninstall removes its webhooks at Revolut, the stored keys and signing secrets, its scheduled task and its settings. Your entries, payments and notes stay in Gravity Forms, and your orders stay in Revolut.

For developers

  • gravityextra_revolut_order_payload filters the order body before it is sent (for example to add metadata).
  • gravityextra_revolut_webhook_url filters the webhook address, for sites behind a proxy.
  • The add-on sends the Revolut-Api-Version: 2024-09-01 header on every request and never follows redirects.

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