Commit fd85c257 authored by eileen's avatar eileen

Update omnipay

parent 549a70a7
......@@ -127,6 +127,12 @@ class CRM_Core_Payment_OmnipayMultiProcessor extends CRM_Core_Payment_PaymentExt
* The result in an nice formatted array (or an error object)
*/
public function doPayment(&$params, $component = 'contribute') {
// If we have a $0 amount, skip call to processor and set payment_status to Completed.
if ($params['amount'] == 0) {
return [
'payment_status_id' => array_search('Completed', CRM_Contribute_BAO_Contribution::buildOptions('contribution_status_id', 'validate')),
];
}
$params['component'] = strtolower($component);
$this->initialize($params);
$this->saveBillingAddressIfRequired($params);
......
......@@ -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),
......
......@@ -14,8 +14,8 @@
<url desc="Support">http://forum.civicrm.org</url>
<url desc="Licensing">http://civicrm.org/licensing</url>
</urls>
<releaseDate>2019-27-04</releaseDate>
<version>3.3</version>
<releaseDate>2019-05-12</releaseDate>
<version>3.5</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.13</ver>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment