Commit 15689ce0 authored by mattwire's avatar mattwire
Browse files

Log if trying to process queued webhook event and payment processor does not support it

parent 8a37cc36
...@@ -98,6 +98,9 @@ function civicrm_api3_job_process_paymentprocessor_webhooks($params) { ...@@ -98,6 +98,9 @@ function civicrm_api3_job_process_paymentprocessor_webhooks($params) {
$eventResult = $paymentProcessor->processWebhookEvent($webhookEvent); $eventResult = $paymentProcessor->processWebhookEvent($webhookEvent);
$results[$eventResult ? 'successes' : 'errors']++; $results[$eventResult ? 'successes' : 'errors']++;
} }
else {
\Civi::log('mjwshared')->warning('Not processing webhook event because payment processor does not implement processWebhookEvent. Details: ' . print_r($webhookEvent, TRUE));
}
$results['processed']++; $results['processed']++;
if ($results['processed'] < $results['queue_count'] && microtime(TRUE) > $timeLimit) { if ($results['processed'] < $results['queue_count'] && microtime(TRUE) > $timeLimit) {
......
Supports Markdown
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