---
title: "Payment gateway"
description: "How the system administrator configures Signer's payment gateway (iugu) on the Payments screen and follows the integration's stability and the history of billing operations."
canonical: "https://docs.lacunasoftware.com/en-us/articles/signer/user-guide/sys-admin/gateway-pagamento"
locale: "en"
product: "Signer"
last_updated: "2026-11-25"
---

# Payment gateway

From version 3.4.0, the payment gateway (iugu) settings are made in the Admin area, which also shows the
integration's stability and the history of billing operations. The **Payments** item shows in the menu when
billing is enabled (`Billing:Enabled`).

![Payments menu item](https://docs.lacunasoftware.com/images/signer/novidades-3-4-0-en-us/gateway-menu.png)

To prepare the iugu account (webhooks, payment methods and automatic charging), see
[iugu payment gateway](https://docs.lacunasoftware.com/en-us/articles/signer/on-premises/iugu).

## Integration stability

Shows the success rate of the gateway operations over the last 24 hours, 7 days and 30 days, the number of
failures and the dates of the last success and last failure.

![Integration stability](https://docs.lacunasoftware.com/images/signer/novidades-3-4-0-en-us/gateway-stability.png)

## Settings

* **Gateway billing enabled** turns gateway billing on or off.
* iugu's **Account ID** and **Test mode**. Use test mode with a test token; with a live token, leave it off.
* **API token** and **Webhooks authentication key**: click **Change** and enter the new value. **Use server
  configuration** goes back to the appsettings value.

Click **Save**. Credentials are validated with the gateway when saving, and changing the account is blocked while
the current account has pending invoices. Each field shows whether its value was set on screen or comes from the
server configuration; values saved on screen take precedence. The icon in the box's corner restores every setting
to the server default.

![Gateway settings](https://docs.lacunasoftware.com/images/signer/novidades-3-4-0-en-us/gateway-settings.png)

## Operations

The list shows the billing operations made on the gateway, successful or failed: invoice issuing, card charges,
payment confirmations, invoice cancellations, refunds and settings changes. Filter by **Status**, **Operation**
and **Period**, and click **Details** on an operation.

![Gateway operations](https://docs.lacunasoftware.com/images/signer/novidades-3-4-0-en-us/gateway-operations.png)

The **Gateway operation** page shows the date, organization, invoice, value, error code and message, and the
gateway's response.

![Gateway operation details](https://docs.lacunasoftware.com/images/signer/novidades-3-4-0-en-us/gateway-operation-details.png)

Operations stay in the history for `PaymentGateway:OperationHistoryRetentionDays` days (365 by default).

> **Note: Who sees this screen**
>
> Only the system administrator can change the settings. The **Billing administrator** role only sees the
> operations.
