1 <I><% mt('Payment attempt') |h %> <% $info |h %></I>
4 my( $cust_pay_pending, %opt ) = @_;
6 my ($payby,$payinfo) = translate_payinfo($cust_pay_pending);
7 $payby = translate_payby($payby,$payinfo);
8 my $info = $payby ? "($payby$payinfo)" : '';
10 if ( $opt{'pkg-balances'} && $cust_pay_pending->pkgnum ) {
11 my $cust_pkg = qsearchs('cust_pkg', { 'pkgnum'=>$cust_pay_pending->pkgnum } );
12 $info .= ' for '. $cust_pkg->pkg_label_long;
16 if ( $cust_pay_pending->failure_status ) {
17 $detail = $cust_pay_pending->display_status;
18 $detail .= ' (' . $cust_pay_pending->statustext . ')'
19 if $cust_pay_pending->statustext;
21 $detail = $cust_pay_pending->statustext;
24 $info .= ': '.$detail if length($detail);