Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Adyen Magento2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared Libs
Adyen Magento2
Commits
2dfd893e
Commit
2dfd893e
authored
Jun 11, 2020
by
attilak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add describing comment for $minutesUntilProcessing calculation
parent
91301f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Model/Cron.php
Model/Cron.php
+2
-0
No files found.
Model/Cron.php
View file @
2dfd893e
...
...
@@ -366,6 +366,8 @@ class Cron
// Remove OFFER_CLOSED notifications arrived in the last 10 minutes from the list to process to ensure it
// won't close any order which has an AUTHORISED notification arrived a bit later than the OFFER_CLOSED one.
$createdAt
=
\DateTime
::
createFromFormat
(
'Y-m-d H:i:s'
,
$notification
[
'created_at'
]);
// Difference between $offerClosedMinDate and $createdAt in minutes is the time until processing the
// notification in minutes
$minutesUntilProcessing
=
$offerClosedMinDate
->
diff
(
$createdAt
)
->
i
;
if
(
$notification
[
'event_code'
]
==
Notification
::
OFFER_CLOSED
&&
$minutesUntilProcessing
>
0
)
{
$this
->
_adyenLogger
->
addAdyenNotificationCronjob
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment