@@ -, +, @@ unknown patron id it will respond with an empty response followed by dropping the connection to a client. --- C4/SIP/ILS.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/C4/SIP/ILS.pm +++ a/C4/SIP/ILS.pm @@ -324,7 +324,9 @@ sub pay_fee { $trans->patron($patron = C4::SIP::ILS::Patron->new($patron_id)); if (!$patron) { $trans->screen_msg('Invalid patron barcode.'); - return $trans; + return { + status => $trans + }; } my $trans_result = $trans->pay( $patron->{borrowernumber}, $fee_amt, $pay_type, $fee_id, $is_writeoff, $disallow_overpayment, $register_id ); my $ok = $trans_result->{ok}; --