$pbl = $payment->online(
new PaybylinkTransferPayment(
(int)shopId,
'hash (hashing: sha256)'
)
);
$pbl->setAmount(1.23); //required
//optionals
$pbl->setDescription('description');
$pbl->setControl('myCustomData');
$pbl->setEmail('email@email.tld');
$pbl->setNotifyUrl('https://notify.url');
$pbl->setReturnUrlSuccess('https://payment-finished.pl');
$pbl->setReturnUrlSuccessTidPass(true/false); //will add transaction id to returnUrlSuccess
$pbl->setHideReceiver(true/false);
$pbl->setCustomFinishNote('Return to shop');
$pblPayment = $pbl->generatePayment();
$pblPayment->getTransactionUrl(); //transaction url
$pblPayment->getTransactionId(); //transaction id
$pbl->generateNotificationHash(json_decode(file_get_contents('php://input'), true));