projects
/
Business-OnlinePayment-PaymenTech.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f07eb40
)
always send expiration date as MMYY
author
mark
<mark>
Mon, 11 Oct 2010 23:01:31 +0000
(23:01 +0000)
committer
mark
<mark>
Mon, 11 Oct 2010 23:01:31 +0000
(23:01 +0000)
lib/Business/OnlinePayment/PaymenTech.pm
patch
|
blob
|
history
diff --git
a/lib/Business/OnlinePayment/PaymenTech.pm
b/lib/Business/OnlinePayment/PaymenTech.pm
index
554bcde
..
ce4c1a3
100644
(file)
--- a/
lib/Business/OnlinePayment/PaymenTech.pm
+++ b/
lib/Business/OnlinePayment/PaymenTech.pm
@@
-190,7
+190,9
@@
sub map_fields {
$content{invoice_number} ||= sprintf("%04x%04x",time % 2**16,int(rand() * 2**16));
}
- $content{expiration} =~ s/\D//g; # Because Freeside sends it as mm/yy, not mmyy.
+ # Always send as MMYY
+ $content{expiration} =~ s/\D//g;
+ $content{expiration} = sprintf('%04d',$content{expiration});
$self->content(%content);
return;