summaryrefslogtreecommitdiff
path: root/LinkPoint.pm
diff options
context:
space:
mode:
authorivan <ivan>2007-07-11 23:48:46 +0000
committerivan <ivan>2007-07-11 23:48:46 +0000
commit0f9677a5ec0ef393ed34ac8f51a9b9b848cebfa9 (patch)
tree5aa2498182acf4395b8a490fd7bd7e0e1d34cd87 /LinkPoint.pm
parentc8481e1aaa97e8301807c94cbae36c0eef284c2b (diff)
ACH transactions: "SUBMITTED" indicates success
Diffstat (limited to 'LinkPoint.pm')
-rw-r--r--LinkPoint.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/LinkPoint.pm b/LinkPoint.pm
index 5411169..3e258c6 100644
--- a/LinkPoint.pm
+++ b/LinkPoint.pm
@@ -6,7 +6,7 @@ use Carp qw(croak);
use Business::OnlinePayment;
@ISA = qw(Business::OnlinePayment);
-$VERSION = '0.09_02';
+$VERSION = '0.09_03';
$VERSION = eval $VERSION; # modperlstyle: convert the string into a number
$DEBUG = 0;
@@ -231,7 +231,12 @@ sub submit {
warn "$_ => $response{$_}\n" for keys %response;
}
- if ( $response{'r_approved'} eq 'APPROVED' ) {
+ if ( $response{'r_approved'} eq 'APPROVED'
+ or ( $self->transaction_type() =~ /^e?check$/i
+ && $response{'r_approved'} eq 'SUBMITTED'
+ )
+ )
+ {
$self->is_success(1);
$self->result_code($response{'r_code'});
$self->authorization($response{'r_ref'});