> For the complete documentation index, see [llms.txt](https://patryqhyper.gitbook.io/polish_payments_api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://patryqhyper.gitbook.io/polish_payments_api/sms-premium/getpay-sms.md).

# GetPay SMS

Base:

```php
$getpay = $payments->sms(new GetPaySms('apiKey', 'apiSecret'));
```

Check SMS code:

```php
$getpay->check('smsCode', 'number as int', 'unlimited as bool (default: false)');
```

Get response code:

```php
$getpay->getResponseCode();
```
