$msms = $payment->online(
new MicrosmsPayment(
(int)shopId,
(int)userId,
'hash',
(bool)useMd5 (default: false)
)
);
$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