ACH transactions: "SUBMITTED" indicates success
[Business-OnlinePayment-LinkPoint.git] / LinkPoint.pm
index 5411169..3e258c6 100644 (file)
@@ -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'});