> ## Documentation Index
> Fetch the complete documentation index at: https://docs.totemdigital.ro/llms.txt
> Use this file to discover all available pages before exploring further.

# Settings and integrations

> Users and permissions, automations, automatic statements, Licence central, direct sign-in to applications, online payment and the Evia assistant.

## Users and permissions

The roles are Administrator, Sales, Technical and Accounting. For each person, permissions can be adjusted per module: no access, read or edit. Clients have separate accounts, in the portal.

## Automations

All automations (renewal proformas, contracts, hours, reminders, incoming emails and statements, sync with Licence central) run from the server's scheduled task, once an hour. Running them again does not duplicate anything. You can also run them manually from **Settings › Automation**.

## Automatic statements

* **Banca Transilvania:** a mailbox only for statements, filled in under **Settings › Payments**. Only emails from the bank's domains, with a valid signature, are imported.
* **Treasury:** SPV requires the digital certificate on the USB token, so the statement is downloaded on the computer where the token is plugged in. Under **Settings › Payments** download the `spv-extrase.ps1` program; on the first run you choose the certificate, and the program schedules itself daily at 10:00 and 15:30.

> [!TIP]
>
> To be asked for the token PIN only once a day, enable “Single Logon” in the token software (for example, SafeNet Authentication Client).

## Licence central

Under **Settings › Licence central** generate the link key and put it in the Licence central configuration as `erp_key`. Upload the `api/erp.php` file to Licence central. The sync runs every 6 hours or manually.

## Direct sign-in to applications

**1. Download sso.php**

From **Settings › App sign-in**. The file contains the ERP's public key.

**2. Upload it to each installation**

In the application's root, next to `login.php`. The rest of the application does not change.

**3. Enable it on the licence**

“App address” = the installation address and “Direct sign-in from the portal” = Yes. Then enable the option in settings.

The link is signed by the ERP, valid for two minutes, only for that application's address, and can be used once.

## Online payment

Under **Settings › Online payments** enter the Stripe secret key (first the test key, `sk_test_…`) and the webhook key. In Stripe, add the webhook address shown on the page, with the events `checkout.session.completed` and `checkout.session.async_payment_succeeded`.

## Evia assistant

Under **Settings › Evia assistant** the Evia chat window can appear in the portal and the support form. Recommended: in the Evia panel, a separate “Client portal” site, linked to this manual, with its key entered in the ERP.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.