projects
/
Business-OnlinePayment-Jety.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6025211
)
add a full timestamp to the 'ref' autogeneration to avoid collisions
author
ivan
<ivan>
Thu, 19 Nov 2009 12:05:09 +0000
(12:05 +0000)
committer
ivan
<ivan>
Thu, 19 Nov 2009 12:05:09 +0000
(12:05 +0000)
Changes
patch
|
blob
|
history
lib/Business/OnlinePayment/Jety.pm
patch
|
blob
|
history
diff --git
a/Changes
b/Changes
index
799e01a
..
8879c98
100644
(file)
--- a/
Changes
+++ b/
Changes
@@
-1,5
+1,8
@@
Revision history for Business-OnlinePayment-Jety
Revision history for Business-OnlinePayment-Jety
+0.05 unreleased
+ - add a full timestamp to the 'ref' autogeneration to avoid collisions
+
0.04 Fri Nov 6 15:34:48 PST 2009
- Really use 111-1111-1111 if no phone number is provided.
- Require description (programdesc).
0.04 Fri Nov 6 15:34:48 PST 2009
- Really use 111-1111-1111 if no phone number is provided.
- Require description (programdesc).
diff --git
a/lib/Business/OnlinePayment/Jety.pm
b/lib/Business/OnlinePayment/Jety.pm
index
be73019
..
11fc85c
100644
(file)
--- a/
lib/Business/OnlinePayment/Jety.pm
+++ b/
lib/Business/OnlinePayment/Jety.pm
@@
-71,7
+71,8
@@
sub map_fields {
if(lc($content->{action}) ne 'normal authorization');
$content->{'function'} = 'echeck';
if(lc($content->{action}) ne 'normal authorization');
$content->{'function'} = 'echeck';
- $content->{'ref'} = time2str('%Y%m%d',time).'-'.int(rand(1000000));
+ $content->{'ref'} =
+ substr( time2str('%Y%m%d%H%M%S',time). int(rand(10000)), -15 );
$content->{'phone'} ||= '111-111-1111';
$content->{'phone'} ||= '111-111-1111';