$ptrans2->Payee = "*****@*****.**";
// no more than 256 characters
$ptrans2->Total = 3000;
$ptrans2->Comment = "Royalties";
// no more than 640 characters
// create the transaction
$trans = new PaymentTransactionModel();
$trans->POSTransactionId = "TRANS-03";
$trans->Payee = $myEmailAddress;
// no more than 256 characters
$trans->Total = 50000;
$trans->Comment = "Test Transaction";
// no more than 640 characters
$trans->AddItem($item);
// add the item to the transaction
$trans->AddPayeeTransaction($ptrans1);
// add the payee transactions to the transaction
$trans->AddPayeeTransaction($ptrans2);
// create the request model
$psr = new PreparePaymentRequestModel();
$psr->GuestCheckout = true;
// we allow guest checkout
$psr->PaymentType = PaymentType::Immediate;
// we want an immediate payment
$psr->FundingSources = array(FundingSourceType::All);
// both Barion wallet and bank card accepted
$psr->PaymentRequestId = "TESTPAY-03";
// no more than 100 characters
$psr->PayerHint = "*****@*****.**";
// no more than 256 characters
$psr->Locale = UILocale::EN;