$hotpay = $payment->online(
new HotPayPayment(
'secret',
'notification password',
HotPayPayment::METHOD_PAYSAFECARD OR HotPayPayment::METHOD_TRANSFER
)
);
$hotpay->setAmount(1.23);
$hotpay->setDescription('description');
$hotpay->setRedirectUrl('https://google.pl');
$hotpay->setOrderId('orderId');
$hotpay->setEmail('email (optional)');
$hotpay->setPersonalData('personal data (optional)');
$hotpayPayment = $hotpay->generatePayment();
$hotpayPayment->getTransactionUrl(); //transaction url