projects
/
Business-OnlinePayment-Network1Financial.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed silly bug with expiration dates
[Business-OnlinePayment-Network1Financial.git]
/
Network1Financial.pm
diff --git
a/Network1Financial.pm
b/Network1Financial.pm
index
5358ec8
..
cd2b77c
100644
(file)
--- a/
Network1Financial.pm
+++ b/
Network1Financial.pm
@@
-13,7
+13,7
@@
require Exporter;
@ISA = qw(Exporter AutoLoader Business::OnlinePayment);
@EXPORT = qw();
@EXPORT_OK = qw();
@ISA = qw(Exporter AutoLoader Business::OnlinePayment);
@EXPORT = qw();
@EXPORT_OK = qw();
-$VERSION = '0.0
1
';
+$VERSION = '0.0
2
';
$DEBUG = 0;
$DEBUG = 0;
@@
-123,9
+123,10
@@
sub submit {
croak "$type not (yet) supported";
}
croak "$type not (yet) supported";
}
- $content{'expiration'} =~
s/
(\d+)\/(\d+)$/;
+ $content{'expiration'} =~
/^
(\d+)\/(\d+)$/;
my($m, $y) = ($1, $2);
my($m, $y) = ($1, $2);
- $m = '0$m' if $m<10;
+ $m = $m+0;
+ $m = "0$m" if $m<10;
my $exp = "$m$y";
$self->revmap_fields(
my $exp = "$m$y";
$self->revmap_fields(