We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba9d3fd commit ccea9d5Copy full SHA for ccea9d5
api/v3/PaymentProcessor/Query.php
@@ -13,7 +13,7 @@
13
*/
14
function civicrm_api3_payment_processor_query($params) {
15
$processor = civicrm_api3('payment_processor', 'getsingle', array('id' => $params['payment_processor_id']));
16
- $responder = new CRM_Core_Payment_OmnipayMultiProcessor('live', $processor);
+ $responder = new CRM_Core_Payment_OmnipayMultiProcessor(($processor['is_test'] ? 'test' : 'live'), $processor);
17
$gatewayParams = array();
18
if (!empty($params['start_date_time'])) {
19
$gatewayParams['startTimestamp'] = strtotime($params['start_date_time']);
0 commit comments