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

Gravity Forms UniCredit PagOnline Imprese 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: Enter Your Terminal
  6. Step 2: The Feed
  7. What the Customer Sees
  8. How an Entry Becomes Paid
  9. The Entry Screen and Refunds
  10. Notifications, Conditional Logic and Other Add-ons
  11. Currency
  12. What Is Not in Version 1.0.0
  13. Questions People Ask
  14. Does my site see any card data?
  15. Where is my terminal key kept?
  16. What if the customer closes the browser after paying?
  17. Can I test without real money?
  18. Does it work with other Gravity Forms add-ons?

Video walkthrough

Gravity Forms UniCredit PagOnline Payment Gateway Setup Guide: Terminal ID & Key (WordPress Side)
Video setup guide: Gravity Forms UniCredit PagOnline Payment Gateway Watch on YouTube

The Gravity Forms UniCredit PagOnline Imprese Payment Gateway Premium Add-on lets a Gravity Forms booking, order or donation form take payments through PagOnline Imprese, the e-commerce service that UniCredit offers to its business customers in Italy. The customer is sent to the secure payment page of the bank, chooses how to pay there, and comes back to your site with the entry already marked as paid. Nothing about the payment is typed on your site, and your server keeps only a payment id, a transaction number and a result.

What You Get

  • A payment feed for Gravity Forms with the transaction types Products and Services and Donations. Every pricing field, discount and shipping field of the form is part of the amount, and the amount is worked out on the server, in euros.
  • The hosted payment page of the bank. The add-on starts the payment with the init service, the customer is sent to the page it returns, and the bank page offers the payment methods that UniCredit has enabled for your terminal, for example cards, MyBank, AccountToPay or Bancomat Pay.
  • Signed requests. Every message to the bank carries an HMAC-SHA256 signature made with your terminal key, as the PagOnline Imprese technical specification describes. The key is stored encrypted and never leaves the server.
  • Results that are checked. The bank sends the customer back to your site, but the add-on never believes what the browser says: it asks the bank for the result of the payment with the verify service and reads the result code before it marks the entry as paid.
  • Full and partial refunds from the entry screen, sent to the bank with the credit service.
  • A status check every five minutes, so a customer who pays and then closes the browser tab still ends up with a paid entry.
  • Test and live settings, a Test connection button, entry notes, conditional logic, payment notification events, the language of the bank page that follows your site, and feeds of other add-ons that can wait for the payment.

Requirements

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer and PHP 7.4 or newer. You also need a PagOnline Imprese e-commerce terminal from UniCredit. That is a normal merchant contract: a UniCredit current account and an acquiring agreement, with the e-commerce service activated. UniCredit gives you a terminal id (Tid), a terminal key (kSig) and the server address of the live service. The add-on needs nothing else and no approval from anybody except your bank. Your site should use HTTPS, because the bank sends the customer back to it. The service of the bank is used in euros, so the currency of Gravity Forms must be EUR.

Quick Start

  1. Install and activate the add-on, then activate your license key under Forms, Settings, UniCredit PagOnline.
  2. Enter the test terminal id and the test terminal key. Leave the test server address empty to use the test environment that UniCredit publishes in the technical specification, and save.
  3. Press Test connection. The add-on sends a signed, read-only request and tells you whether the terminal id, the key and the address work.
  4. Set the currency of Gravity Forms to EUR and build a form with product fields and a Total field.
  5. Open the form settings, choose UniCredit PagOnline and add a feed. Set the payment reason.
  6. Make a test payment and check the entry. When everything looks right, enter the live terminal id, key and server address, select Live and save.
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.

Step 1: Enter Your Terminal

Open Forms, Settings, UniCredit PagOnline. The first choice is the environment. Test is the default: payments go to the UniCredit test environment, no money moves and every entry is marked as a test payment. Each environment has three fields and a connection line.

The terminal id is the code of your e-commerce terminal, up to sixteen letters and digits. The terminal key is the secret that signs every request. It is stored encrypted, the settings page never shows it again, and leaving the field empty on a later save keeps the key you already saved. The server address is where the PagOnline services live. For the test environment you can leave it empty. For live, UniCredit gives it to you with the terminal, and the add-on only accepts an address that starts with https.

Test connection sends a signed request for a payment that does not exist. The bank checks the signature and the terminal first, so a plain answer such as payment not found proves that the address, the terminal id and the key are right, while a refused signature or terminal is reported in words, for example that the terminal id or the key is wrong. Nothing is created at the bank. Remove key forgets the key of that environment, and you can enter it again at any time.

Step 2: The Feed

Add a feed to the form. Choose Products and Services for orders and bookings, or Donations for a form where the donor types an amount in a field of the user defined price type. Pick the payment amount: the form total, or one product field.

The payment reason is sent to the bank as the description of the payment and is kept in your PagOnline reports. Merge tags work, for example the form title followed by the entry id. At most one hundred characters are sent, which is the limit of the field. The add-on sends no customer details with a payment, so there is nothing to map.

Tick Send form notifications only after the payment is authorised to hold the normal notifications, such as a booking email, until the money has really arrived. The feed supports conditional logic: only the submissions that match go to the bank, and the others are saved as normal entries.

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.

What the Customer Sees

The customer fills in the form and presses the button. The add-on starts the payment at the bank and sends the customer to the payment page. The page is in Italian when your site is in Italian and in English otherwise. The customer picks a payment method, pays, and the bank sends the customer back to the page with your form, where the confirmation you set up in Gravity Forms appears.

If the customer comes back before the bank has confirmed the payment, a short message says the payment is being confirmed and the page checks again by itself. If the customer cancels on the bank page, the page says the payment was not completed, nobody is charged, and the entry is marked as failed with a note and the failure notification.

How an Entry Becomes Paid

Three things can tell your site that a payment happened: the customer coming back, the call that the bank may make to the notify address, and the status check that runs every five minutes. They all lead to the same step. The add-on asks the bank for the result of the payment with a signed verify request, using the payment id it stored when the payment was started. The result code IGFS_000 means the transaction is authorised. Only then, and only with a transaction number, is the entry marked as paid, once.

Other codes are handled with care. A payment that is still in progress keeps the entry waiting. A payment that the customer cancelled or that the bank or the issuer refused closes the entry as failed, with the code and its meaning in a note. A system error or a timeout never fails an entry: the entry stays as it is and is read again later. If an answer ever carries an amount, a shop id or a payment id that is not this entry’s, the entry is not marked as paid and a note says so. 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.

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.

The Entry Screen and Refunds

Every entry paid through PagOnline has a box on the entry screen. It shows the status, the transaction number, the payment id, your reference, the amount and what was refunded. A test payment carries a badge.

To refund, type an amount and press Refund. The amount defaults to what is left. Every refund asks for a confirmation, needs a valid nonce and the permission to edit entries, and carries a one-time request id, so a double click or a reload cannot refund twice. The add-on first asks the bank for the payment and refunds only when the bank reports it as authorised with the stored transaction. Then it sends a credit request with its own unique shop id, and records the refund only when the bank answers with the result code that means success. The first partial refund sets the entry to Partially Refunded, and the refund that reaches the full amount sets it to Refunded, with the refund notification.

The bank sets the time limit for each payment method. The specification gives unlimited time through the service for Visa and Mastercard, thirty days for Bancomat Pay and twelve months for Alipay. If the bank refuses a refund you see its message and the entry is not changed. If it does not answer, a note says the result is unknown and asks you to look in the PagOnline back office before you try again.

Notifications, Conditional Logic and Other Add-ons

Gravity Forms notifications get three payment events: payment completed, payment refunded and payment failed. Feeds of other add-ons, such as an email marketing or CRM feed, can be told to run only when the payment is completed. Tick the choice that appears under Post Payment Actions on the PagOnline feed, and the other add-on waits.

Currency

PagOnline is used in euros. The add-on refuses a form in another currency with a clear message and no entry, and the amount is sent as a whole number of cents, as the specification requires.

What Is Not in Version 1.0.0

This version takes immediate one-time payments. Authorise first and capture later, voiding an authorisation, recurring payments and the batch files of the service are not part of this release.

Questions People Ask

Does my site see any card data?

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

Where is my terminal key kept?

On your server, encrypted, outside the normal settings. It signs requests on the server and it is never sent to a browser or printed in a log.

What if the customer closes the browser after paying?

The call of the bank to the notify address or the status check every five minutes asks the bank for the result and updates the entry.

Can I test without real money?

Yes. UniCredit publishes a test environment in the technical specification. Enter your test terminal, and entries are marked as test payments.

Does it work with other Gravity Forms add-ons?

Yes. Conditional logic, notifications and feeds that wait for the payment all work with the PagOnline feed.

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

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