---
title: "$viva->testConnection()"
method: POST
path: "/VivaClient/testConnection"
tags: ["VivaClient"]
---

# $viva->testConnection()

`POST /VivaClient/testConnection`

Teste la connexion en s'authentifiant et en récupérant les infos du compte.

```php
if ($viva->testConnection()) {
    echo 'Connexion OK';
} else {
    echo 'Échec de connexion';
}
```

## Response `200`

`bool` — `true` si la connexion est réussie, `false` sinon

- boolean

---

[API](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php.md) · [All operations](https://skmtc.net/qrcommunication/apis/viva-wallet-merchant-sdk-re-fe-rence-php/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qrcommunication/viva-wallet-merchant-sdk-re-fe-rence-php/versions/bcafd06ce584/schema)
