RT#42347: Add IDT transaction ID to payment information [v3 merge]
authorJonathan Prykop <jonathan@freeside.biz>
Fri, 13 May 2016 23:11:34 +0000 (18:11 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Sat, 14 May 2016 00:03:45 +0000 (19:03 -0500)
FS/FS/API.pm
FS/FS/Schema.pm

index 4e6cb6c..4ff1a3a 100644 (file)
@@ -65,6 +65,10 @@ Amount paid
 
 Option date for payment
 
+=item order_number
+
+Optional order number
+
 =back
 
 Example:
@@ -77,6 +81,7 @@ Example:
 
     #optional
     '_date'   => 1397977200, #UNIX timestamp
+    'order_number' => '12345',
   );
 
   if ( $result->{'error'} ) {
index c40f6c7..c8f8c81 100644 (file)
@@ -1774,7 +1774,7 @@ sub tables_hashref {
         'gatewaynum',     'int', 'NULL', '', '', '', # payment_gateway FK
         'processor',  'varchar', 'NULL', $char_d, '', '', # module name
         'auth',       'varchar','NULL',16, '', '', # CC auth number
-        'order_number','varchar','NULL',$char_d, '', '', # transaction number
+        'order_number','varchar','NULL',256, '', '', # transaction number
       ],
       'primary_key' => 'paynum',
       #i guess not now, with cust_pay_pending, if we actually make it here, we _do_ want to record it# 'unique' => [ [ 'payunique' ] ],
@@ -1809,7 +1809,7 @@ sub tables_hashref {
         'gatewaynum',     'int', 'NULL', '', '', '', # payment_gateway FK
         'processor',  'varchar', 'NULL', $char_d, '', '', # module name
         'auth',       'varchar','NULL',16, '', '', # CC auth number
-        'order_number', 'varchar','NULL',$char_d, '', '', # transaction number
+        'order_number', 'varchar','NULL',256, '', '', # transaction number
 
         #void fields
         'void_date', @date_type, '', '',