change name of return files for EFT Canada batches, #16252
[freeside.git] / FS / bin / freeside-eftca-download
index 702a80c..d54a724 100755 (executable)
@@ -82,7 +82,7 @@ foreach my $agent (@agents) {
 
   $sftp->setcwd('/Returns');
 
-  my $files = $sftp->ls('.', wanted => qr/^ReturnFile/, names_only => 1);
+  my $files = $sftp->ls('.', wanted => qr/\.txt$/, names_only => 1);
   die "no response files found\n" if !@$files;
 
   FILE: foreach my $filename (@$files) {