$pbl = $payment->online(
new PaybylinkPaysafecardPayment(
(int)userId,
(int)shopId,
'pin'
)
);
$pbl->setAmount(1.23);
$pbl->setRedirectSuccessUrl('https://google.pl');
$pbl->setRedirectFailUrl('https://google.pl');
$pbl->setNotifyUrl('https://google.pl');
$pbl->setControl('myCustomData');
$pbl->setDescription('my description');
$pblPayment = $pbl->generatePayment();
$pblPayment->getTransactionUrl(); //transaction url
$pblPayment->getTransactionId(); //transaction id