summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-05-13 18:11:34 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-05-13 18:43:43 -0500
commitf94bba288f69daaadfb23e1ebf9b13e72a670220 (patch)
tree219ea0615eafb29746ab8f19b80827c513a1f938 /FS
parent3eb36ed54fe59f2867f9343a46f01cc728dce938 (diff)
RT#42347: Add IDT transaction ID to payment information
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/API.pm5
-rw-r--r--FS/FS/Schema.pm4
2 files changed, 7 insertions, 2 deletions
diff --git a/FS/FS/API.pm b/FS/FS/API.pm
index 9d0ef25..6ca2b55 100644
--- a/FS/FS/API.pm
+++ b/FS/FS/API.pm
@@ -66,6 +66,10 @@ Amount paid
Option date for payment
+=item order_number
+
+Optional order number
+
=back
Example:
@@ -78,6 +82,7 @@ Example:
#optional
'_date' => 1397977200, #UNIX timestamp
+ 'order_number' => '12345',
);
if ( $result->{'error'} ) {
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 725c9de..b0a0ea7 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -2479,7 +2479,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' ] ],
@@ -2533,7 +2533,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, '', '',