> 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/online-payments/microsms-transfer.md).

# MicroSMS transfer

{% hint style="danger" %}
MicroSMS class is deprecated since MicroSMS does not exist anymore. It will be removed in future release.
{% endhint %}

Base:

```php
$msms = $payment->online(
    new MicrosmsPayment(
        (int)shopId, 
        (int)userId,
        'hash',
        (bool)useMd5 (default: false)
    )
);
```

Initiate payment:

```php
$msms->setAmount(1.23); //required
//optionals
$msms->setDescription('description');
$msms->setControl('myCustomData');
$msms->setReturnUrlc('https://notify.url');
$msms->setReturnUrl('https://payment-finished.pl');

$payment = $msms->generatePayment();
$payment->getTransactionUrl(); //transaction url
$payment->getTransactionId(); //transaction id

```
