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).
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';