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

# Check code

```php
SimPay::sms()->check('SMS_CODE', 'sms number as int (optional)');
```

Response will be [SmsCodeResponse](/simpay-laravel/sms/responses/smscoderesponse.md) if code is valid.

`SimPay\Laravel\Exceptions\SimPayException` will be thrown if code is not valid.
