Skip to content

Commit

Permalink
Merge pull request #121 from jitendrapurohit/recur-fix
Browse files Browse the repository at this point in the history
Fix recording of recur payment
  • Loading branch information
eileenmcnaughton authored Jun 3, 2019
2 parents bdadafe + f2709da commit 2960e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v3/Job/ProcessRecurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
function civicrm_api3_job_process_recurring($params) {
$omnipayProcessors = civicrm_api3('PaymentProcessor', 'get', array('class_name' => 'Payment_OmnipayMultiProcessor'));
$recurringPayments = civicrm_api3('ContributionRecur', 'get', array(
'next_sched_contribution_date' => ['BETWEEN' => ['today', 'tomorrow']],
'next_sched_contribution_date' => ['BETWEEN' => [date('Y-m-d 00:00:00'), date('Y-m-d 12:59:59')]],
'payment_processor_id' => array('IN' => array_keys($omnipayProcessors['values'])),
'contribution_status_id' => array('IN' => array('In Progress', 'Pending', 'Overdue')),
'options' => array('limit' => 0),
Expand Down

0 comments on commit 2960e45

Please sign in to comment.