tyop
[Business-OnlinePayment-Network1Financial.git] / Network1Financial.pm
index 5358ec8..feabece 100644 (file)
@@ -123,9 +123,9 @@ sub submit {
       croak "$type not (yet) supported";
     }
 
-    $content{'expiration'} =~ s/(\d+)\/(\d+)$/;
+    $content{'expiration'} =~ /^(\d+)\/(\d+)$/;
     my($m, $y) = ($1, $2);
-    $m = '0$m' if $m<10;
+    $m = "0$m" if $m<10;
     my $exp = "$m$y";
 
     $self->revmap_fields(