1 <I><% mt('Payment attempt') |h %> <% $info |h %></I>
4 my( $cust_pay_batch, %opt ) = @_;
6 my ($payby,$payinfo) = translate_payinfo($cust_pay_batch);
7 $payby = translate_payby($payby,$payinfo);
8 my $info = $payby ? "($payby$payinfo)" : '';
11 if ( $cust_pay_batch->failure_status ) {
12 $detail = $cust_pay_batch->display_status;
13 $detail .= ' ('.$cust_pay_batch->error_message.')'
14 if $cust_pay_batch->error_message;
16 $detail = $cust_pay_batch->error_message;
18 $info .= ': '.$detail if length($detail);