Add order_reference to spec
authorMatthew Wire <mjw@mjwconsult.co.uk>
Wed, 27 Jan 2021 00:19:49 +0000 (00:19 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Wed, 27 Jan 2021 00:21:57 +0000 (00:21 +0000)
api/v3/Payment.php

index 555c791c2dfd3fe7e6edabb92a889a4d3ef391c0..2e9649aba7d6e96b71c589be13e5b7c330955e44 100644 (file)
@@ -350,6 +350,11 @@ function _civicrm_api3_payment_get_spec(&$params) {
       'description' => ts('Transaction id supplied by external processor. This may not be unique.'),
       'type' => CRM_Utils_Type::T_STRING,
     ],
+    'order_reference' => [
+      'title' => ts('Order Reference'),
+      'description' => ts('Payment Processor external order reference'),
+      'type' => CRM_Utils_Type::T_STRING,
+    ],
     'trxn_date' => [
       'title' => ts('Payment Date'),
       'type' => CRM_Utils_Type::T_TIMESTAMP,