X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FPayment.php;h=437d0e5a4e5769dbe0aefdc39197790e4ea9531e;hb=af5c6758a26a9585cde11bd6fb4a99fcf6311661;hp=555c791c2dfd3fe7e6edabb92a889a4d3ef391c0;hpb=913b1e8c41739734e63bfd6c033b638959aef2d8;p=civicrm-core.git diff --git a/api/v3/Payment.php b/api/v3/Payment.php index 555c791c2d..437d0e5a4e 100644 --- a/api/v3/Payment.php +++ b/api/v3/Payment.php @@ -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,