Merge pull request #16274 from colemanw/type
[civicrm-core.git] / api / v3 / PaymentProcessor.php
index 4d7df87fe1e8043a28f920f83ede48b85731dc94..06587f00ca3120f50e4067ed510eda1c3544a814 100644 (file)
  *   API result array
  */
 function civicrm_api3_payment_processor_create($params) {
-  if (empty($params['id']) && empty($params['payment_instrument_id'])) {
-    $params['payment_instrument_id'] = civicrm_api3('PaymentProcessorType', 'getvalue', [
-      'id' => $params['payment_processor_type_id'],
-      'return' => 'payment_instrument_id',
-    ]);
-  }
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'PaymentProcessor');
 }