blob: 765e54281b4bdd80c63bef041668aa12c5e1a74d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<I><% mt('Payment attempt') |h %> <% $info |h %></I>
<%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);
</%init>
|