# Introduction

Requirements:

PHP: ^8.1

Base initiation:

```php
$dpay = new \PatryQHyper\Dpay\Dpay();
```

In Dpay constructor you can pass 2 environments. As default, the environment is set to **Production**:

```php
new \PatryQHyper\Dpay\Environment\ProductionEnvironment();
new \PatryQHyper\Dpay\Environment\TestEnvironment();
```

SDK is divided into 2 "actions".

One is panel(); which calls requests to Panel API (<https://panel.dpay.pl/api>),

Second is secure(); which calls requests to Secure API (<https://secure.dpay.pl>)
