projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c9b608b
)
Setup hash for CC failed Text::Template
author
khoff
<khoff>
Fri, 7 Jun 2002 20:33:27 +0000
(20:33 +0000)
committer
khoff
<khoff>
Fri, 7 Jun 2002 20:33:27 +0000
(20:33 +0000)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
f67ef96
..
2075585
100644
(file)
--- a/
FS/FS/cust_bill.pm
+++ b/
FS/FS/cust_bill.pm
@@
-525,6
+525,7
@@
sub realtime_card {
if ( $transaction->is_success() && $action2 ) {
my $auth = $transaction->authorization;
my $ordernum = $transaction->order_number;
if ( $transaction->is_success() && $action2 ) {
my $auth = $transaction->authorization;
my $ordernum = $transaction->order_number;
+
#warn "********* $auth ***********\n";
#warn "********* $ordernum ***********\n";
my $capture =
#warn "********* $auth ***********\n";
#warn "********* $ordernum ***********\n";
my $capture =
@@
-590,7
+591,7
@@
sub realtime_card {
$template->compile()
or return "($perror) can't compile template: $Text::Template::ERROR";
$template->compile()
or return "($perror) can't compile template: $Text::Template::ERROR";
- my $
error = $transaction->error_message
;
+ my $
templ_hash = { error => $transaction->error_message }
;
#false laziness w/FS::cust_pay::delete & fs_signup_server && ::send
$ENV{MAILADDRESS} = $invoice_from;
#false laziness w/FS::cust_pay::delete & fs_signup_server && ::send
$ENV{MAILADDRESS} = $invoice_from;
@@
-604,7
+605,7
@@
sub realtime_card {
] );
my $message = new Mail::Internet (
'Header' => $header,
] );
my $message = new Mail::Internet (
'Header' => $header,
- 'Body' => [ $template->fill_in() ],
+ 'Body' => [ $template->fill_in(
HASH => $templ_hash
) ],
);
$!=0;
$message->smtpsend( Host => $smtpmachine )
);
$!=0;
$message->smtpsend( Host => $smtpmachine )
@@
-950,7
+951,7
@@
sub print_text {
=head1 VERSION
=head1 VERSION
-$Id: cust_bill.pm,v 1.3
6 2002-05-31 20:31:05 ivan
Exp $
+$Id: cust_bill.pm,v 1.3
7 2002-06-07 20:33:27 khoff
Exp $
=head1 BUGS
=head1 BUGS