$pay_response = $account->pay($pay_options);
}
catch {
if ( ref($_) eq 'Koha::Exceptions::Account::RegisterRequired' ) {
if ( ref($_) =~ /^Koha::Exceptions/ ) {
$ok = 0;
$error = q{SIP account must be associated with a register for 'fee paid' messages to succeed};
$error = $_->description;
else {
$_->rethrow;
-