🎉 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 Take UniCredit PagOnline Payments in Gravity Forms

GravityExtra
How to Take UniCredit PagOnline Payments in Gravity Forms

A business in Italy that banks with UniCredit can take online payments through PagOnline Imprese, the e-commerce service of the bank. If your bookings, orders or donations come through Gravity Forms, there is a clean way to connect the two: the customer pays on the secure page of the bank, and your form only ever sees an amount, a reference and a result. This guide shows how that works, what the add-on does at each step and why it never takes the word of a browser.

Why Use the Bank Page

A payment form on your own site means that card numbers pass through your pages, which brings a lot of security work with it. A hosted page of the bank avoids that. The customer is sent to the bank, picks a method such as a card, MyBank, AccountToPay or Bancomat Pay, whatever the bank has enabled for your terminal, and pays there. Your site receives a payment id and, in the end, a result. Gravity Forms stays what it is good at: collecting details, working out a total from product, quantity, discount and booking fee fields, and storing the entry.

The Gravity Forms UniCredit PagOnline Imprese Payment Gateway Premium Add-on connects the two with the redirect flow that the PagOnline Imprese technical specification describes.

What You Need

  • Gravity Forms 2.9 or newer and WordPress 6.5 or newer.
  • A PagOnline Imprese e-commerce terminal from UniCredit, which means a UniCredit current account and an acquiring agreement. The bank gives you a terminal id, a terminal key and, for the live service, a server address.
  • The add-on and its license key.
  • A site on HTTPS and a form in euros.

There is no reseller programme and no approval step beyond your bank contract. The add-on is self-serve: you enter your own terminal, and it talks to the bank and to your own site.

Step by Step: Your First Payment

  1. Install the add-on, activate the license and open Forms, Settings, UniCredit PagOnline.
  2. Enter your test terminal id and terminal key. Leave the test server address empty to use the test environment of the specification, and save.
  3. Press Test connection. A signed request for a payment that does not exist proves the address, the terminal and the key, and nothing is created at the bank.
  4. Build a form: name, email, one or two product fields and a Total field. Set the currency of Gravity Forms to EUR.
  5. In the form settings, add a UniCredit PagOnline feed. Choose the payment amount and write the reason that goes to the bank.
  6. Open the form on your site, fill it in and press the button. You land on the payment page of the bank. Pay there.
  7. Back on your site you see the confirmation. Open the entry: the status is Paid, and the PagOnline box shows the transaction and the amounts.
The UniCredit PagOnline settings in Gravity Forms: test or live, terminal id, terminal key and server address fields, the connection status with Test connection and Remove key buttons, the currency check and an example of the notify address
One settings page: terminal id, terminal key and server address for test and live, a connection line and a Test connection button.

How the Signature Works

The PagOnline services do not use a password in each request. Every message carries a signature: a keyed hash, HMAC with SHA-256, made over the fields of the message in a fixed order with your terminal key and encoded in Base64. The bank repeats the calculation with the key it holds for your terminal, and a message that does not match is refused. The key itself is never sent.

The add-on stores the terminal key encrypted with a key made from your site salts, and the settings page never shows it again. If you leave the key field empty on a later save, the saved key stays. A Remove key button forgets it, so you can enter a new one when the bank issues one.

What Happens Behind the Scenes

When the form is submitted, the add-on works out the amount on the server from the entry, and never from a hidden field. It starts a payment at the bank with that amount in cents, in euros, with a unique shop id of its own, the language of your site, a description and two addresses: the notify address, where the bank sends the customer after the payment, and the error address for problems. Each address is the page of your form with a signed token that only says which entry it is about.

The bank answers with a payment id and the address of its payment page. The add-on only follows that address when it is a secure address on a host of the bank, so a damaged answer can never send a customer to a stranger.

Why the Add-on Asks Again

When the customer returns, or when the bank calls the notify address, the add-on does not read a result from the address. A browser can show anything. Instead it asks the bank, with a signed verify request, for the result of that payment. The result code IGFS_000 means the transaction is authorised. Only with that code, and with a transaction number, is the entry marked as Paid, and it happens once, however many times the same news arrives.

That covers the awkward cases. If the customer closes the tab after paying, the status check that runs every five minutes asks the bank and finds the authorised payment. If somebody opens the notify address while the payment is still waiting, nothing changes. If the bank has a system problem or does not answer, the entry stays as it is and is read again later, instead of being failed by mistake. If an answer carries an amount, a shop id or a payment id that is not the entry’s, the entry is not paid, and a note tells you to look at the payment in the PagOnline back office.

A Gravity Forms entry paid through UniCredit PagOnline, with payment details, a PagOnline box showing the transaction, payment id, reference, amounts and a refund field, and entry notes
The entry shows the transaction, the amounts and a refund box, with notes for every step.

Cancelled and Abandoned Payments

Customers change their mind. If the customer cancels on the bank page, the add-on marks the entry as failed, adds a note with the result code and its meaning, and sends your failure notification, and the customer who comes back to the site sees a clear message that nothing was charged. A payment that nobody finishes is closed as failed a day after checkout, and one that the bank sent to the error address is closed after a quarter of an hour. No entry waits forever, and no booking email is sent for a payment that never happens.

The UniCredit PagOnline feed settings in Gravity Forms: the payment reason sent to the bank and the option to hold notifications until the payment is authorised
One feed per form: the reason sent to the bank and the notification option.

The Reason of the Payment

The payment reason of the feed goes to the bank as the description of the payment and appears in your PagOnline reports, which makes reconciliation easy. Use merge tags, for example the form title and the entry number. The field takes one hundred characters and the add-on cuts it there. The add-on sends no customer details to the bank: the name and email stay in your form and your entry. The shop id of every payment is unique, and the reference is also kept in the entry so that you can find a payment from either side.

Refunds From the Entry Screen

Open an entry and use the PagOnline box. Type an amount and press Refund. The add-on first asks the bank for the payment and goes ahead only when the bank reports it as authorised with the stored transaction. Then it sends a credit request with a new unique shop id, and records the refund only when the bank answers with the success code. The entry changes to Partially Refunded or Refunded with a note and the Gravity Forms refund notification. A double click cannot refund twice, and if the bank refuses you see its message and nothing changes. The specification sets the time limit per payment method, unlimited through the service for Visa and Mastercard.

Keeping Your Connection Safe

  • The terminal key is stored encrypted and is never shown.
  • It is used on the server only and is never sent to a browser, a form or a log.
  • Only a secure address on a host of the bank is accepted as the payment page.
  • A wrong terminal id or key is reported in words by the Test connection button.
  • Test and live have separate terminals, and an entry remembers which environment it was paid in.

Practical Setups

  • A restaurant or tour booking form that holds the booking email until the payment is authorised.
  • A course or event ticket form where only paying people reach the next step, with conditional logic on the feed.
  • A donation form with a user defined price field and a reason that names the campaign.
  • A quote form where an accepted quote links to a second form that takes a deposit.
  • An enrolment form that adds the parent to your email list only after the payment is completed.

In every case the entry tells the story: a note when the customer was sent to the bank, a note when the payment was authorised with the transaction number, and a note for every refund. Your staff can answer a question about a payment without opening the PagOnline back office.

Going Live

When the test payments look right, enter the live terminal id, the live terminal key and the live server address that UniCredit gave you, select Live and save. Press Test connection for the live environment. Make one real payment of a small amount, check the entry and refund it from the entry screen, and you are done.

Questions People Ask

Does any card data touch my website?

No. The customer pays on the page of the bank. Your site receives a payment id, a transaction number and a result.

Can I authorise now and capture later?

Not in version 1.0.0. It takes immediate one-time payments. Authorise and capture, voiding and recurring payments are not part of this release.

Will it work with conditional logic and other add-ons?

Yes. Conditional logic on the feed decides which submissions go to the bank, and feeds of other add-ons can wait until the payment is completed.

To see every option, read the PagOnline setup guide, or visit the Gravity Forms UniCredit PagOnline Imprese Payment Gateway Premium Add-on page.

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