$limit = CRM_Utils_Array::value('limit', $params['options']);
}
$params['options']['limit'] = 0;
+ if (isset($params['trxn_id'])) {
+ $params['financial_trxn_id.trxn_id'] = $params['trxn_id'];
+ }
$eft = civicrm_api3('EntityFinancialTrxn', 'get', $params);
if (!empty($eft['values'])) {
$eftIds = [];
'title' => ts('Cancel Date'),
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
],
+ 'is_send_contribution_notification' => [
+ 'title' => ts('Send out notifications based on contribution status change?'),
+ 'description' => ts('Most commonly this equates to emails relating to the contribution, event, etcwhen a payment completes a contribution'),
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ 'api.default' => TRUE,
+ ],
];
}
'type' => CRM_Utils_Type::T_INT,
'api.aliases' => ['contribution_id'],
],
+ 'trxn_id' => [
+ 'title' => 'Transaction ID',
+ 'type' => CRM_Utils_Type::T_STRING,
+ ],
];
}