Skip to content

Commit ccea9d5

Browse files
Update to support test mode
1 parent ba9d3fd commit ccea9d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v3/PaymentProcessor/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
function civicrm_api3_payment_processor_query($params) {
1515
$processor = civicrm_api3('payment_processor', 'getsingle', array('id' => $params['payment_processor_id']));
16-
$responder = new CRM_Core_Payment_OmnipayMultiProcessor('live', $processor);
16+
$responder = new CRM_Core_Payment_OmnipayMultiProcessor(($processor['is_test'] ? 'test' : 'live'), $processor);
1717
$gatewayParams = array();
1818
if (!empty($params['start_date_time'])) {
1919
$gatewayParams['startTimestamp'] = strtotime($params['start_date_time']);

0 commit comments

Comments
 (0)