<% mt('Payment attempt') |h %> <% $info |h %> <%init> my( $cust_pay_batch, %opt ) = @_; my ($payby,$payinfo) = translate_payinfo($cust_pay_batch); $payby = translate_payby($payby,$payinfo); my $info = $payby ? "($payby$payinfo)" : ''; my $detail = ''; if ( $cust_pay_batch->failure_status ) { $detail = $cust_pay_batch->display_status; $detail .= ' ('.$cust_pay_batch->error_message.')' if $cust_pay_batch->error_message; } else { $detail = $cust_pay_batch->error_message; } $info .= ': '.$detail if length($detail);