Merge pull request #23892 from eileenmcnaughton/order
[civicrm-core.git] / api / v3 / Payment.php
index 555c791c2dfd3fe7e6edabb92a889a4d3ef391c0..437d0e5a4e5769dbe0aefdc39197790e4ea9531e 100644 (file)
@@ -135,12 +135,6 @@ function civicrm_api3_payment_create($params) {
       }
     }
   }
-  if (!empty($params['payment_processor'])) {
-    // I can't find evidence this is passed in - I was gonna just remove it but decided to deprecate  as I see getToFinancialAccount
-    // also anticipates it.
-    CRM_Core_Error::deprecatedFunctionWarning('passing payment_processor is deprecated - use payment_processor_id');
-    $params['payment_processor_id'] = $params['payment_processor'];
-  }
   // Check if it is an update
   if (!empty($params['id'])) {
     $amount = $params['total_amount'];
@@ -350,6 +344,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,