> 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/hotpay-mobile-direct-billing-premiumrate.md).

# HotPay mobile (direct billing/premiumrate)

```php
$hotpay = $payment->online(
    new HotPayMobilePayment(
        'secret', 
        HotPayMobilePayment::METHOD_PREMIUMRATE OR HotPayMobilePayment::METHOD_DIRECTBILLING
    )
);

$hotpay->setAmount(1.23);
$hotpay->setDescription('description');
$hotpay->setOrderId('orderId');
$hotpay->setRedirectSuccessUrl('https://google.com');
$hotpay->setRedirectFailUrl('https://google.pl');

$hotpayPayment = $hotpay->generatePayment();
$hotpayPayment->getTransactionUrl(); // transaction url

```
