diff --git a/src/Service/CronTask.php b/src/Service/CronTask.php index 8221db4..584e348 100644 --- a/src/Service/CronTask.php +++ b/src/Service/CronTask.php @@ -11,7 +11,7 @@ class CronTask extends ScheduledTask { - public const CRON_INTERVAL = 600; + public const CRON_INTERVAL = 30; public static function getTaskName(): string { diff --git a/src/Service/CronTaskHandler.php b/src/Service/CronTaskHandler.php index 22290f7..4c4793e 100644 --- a/src/Service/CronTaskHandler.php +++ b/src/Service/CronTaskHandler.php @@ -157,7 +157,7 @@ private function getTimeInterval($config) * @return void * @throws \Exception */ - public function processOrder(array $order) + private function processOrder(array $order) { if (!array_key_exists('custom_fields', $order)) { return; @@ -166,7 +166,6 @@ public function processOrder(array $order) if (!array_key_exists(Form::CUSTOM_FIELD_WORLDLINE_PAYMENT_HOSTED_CHECKOUT_ID, $customFields)) { return; } - $hostedCheckoutId = $customFields[Form::CUSTOM_FIELD_WORLDLINE_PAYMENT_HOSTED_CHECKOUT_ID]; $order = PaymentHandler::getOrder(