> For the complete documentation index, see [llms.txt](https://plug-and-play.gitbook.io/plug-and-play/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plug-and-play.gitbook.io/plug-and-play/pap_billing/exports.md).

# Exports

## Client Exports

### Ouverture du terminal de payement

```lua
exports.PAP_billing:OpenTerminal(data)
```

<pre class="language-lua" data-overflow="wrap"><code class="lang-lua"><strong>local data = {
</strong>    type = "open" -- le type d'ouverture
    terminal = "sumuk" -- le model du terminal
}

exports.PAP_billing:OpenTerminal(data)
</code></pre>

### Récupération taxes

```lua
local Taxes = exports.PAP_billing:GetTaxes()
```

*Retourne les taxes du serveur*

## Serveur Exports

### Récupération taxes

```lua
local Taxes = exports.PAP_billing:GetTaxes()
```

*Retourne les taxes du serveur*

### Facturation

<pre class="language-lua"><code class="lang-lua"><strong>local success = exports.PAP_billing:Billing(data)
</strong></code></pre>

*Applique un payement forcé a un joueur en vers une société ou un joueur*

<pre class="language-lua" data-overflow="wrap"><code class="lang-lua">local data = {
<strong>    idTarget = 1 -- source du joueur ciblé
</strong>    society = "society_police" -- l'argent transféré à cette société
    -- idPlayer = 3 -- source du joueur qui recupere l'argent si aucune société est inscrite
    account = "bank" -- D'où l'argent va etre puisé ("bank", "money")
    amount = 5200 -- Le montant de la facture
    taxe = "entreprise" -- le type de taxe inscrite (enlever si vous ne voulez pas de taxe)
}

exports.PAP_billing:Billing(data)
</code></pre>
