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
5e1086fc
Commit
5e1086fc
authored
Sep 06, 2017
by
Rik ter Beek
Committed by
GitHub
Sep 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #189 from Adyen/develop-rik-new
don't execute 3D logic if 3D secure payment was already successful
parents
30771b3d
ce1411b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Controller/Process/Validate3d.php
Controller/Process/Validate3d.php
+3
-1
No files found.
Controller/Process/Validate3d.php
View file @
5e1086fc
...
...
@@ -89,10 +89,11 @@ class Validate3d extends \Magento\Framework\App\Action\Action
if
(
$order
->
getPayment
())
{
$active
=
$order
->
getPayment
()
->
getAdditionalInformation
(
'3dActive'
);
$success
=
$order
->
getPayment
()
->
getAdditionalInformation
(
'3dSuccess'
);
}
// check if 3D secure is active. If not just go to success page
if
(
$active
)
{
if
(
$active
&&
$success
!=
true
)
{
$this
->
_adyenLogger
->
addAdyenResult
(
"3D secure is active"
);
...
...
@@ -131,6 +132,7 @@ class Validate3d extends \Magento\Framework\App\Action\Action
$order
->
addStatusHistoryComment
(
__
(
'3D-secure validation was successful'
))
->
save
();
// set back to false so when pressed back button on the success page it will reactivate 3D secure
$order
->
getPayment
()
->
setAdditionalInformation
(
'3dActive'
,
''
);
$order
->
getPayment
()
->
setAdditionalInformation
(
'3dSuccess'
,
true
);
$this
->
_orderRepository
->
save
(
$order
);
$this
->
_redirect
(
'checkout/onepage/success'
,
[
'_query'
=>
[
'utm_nooverride'
=>
'1'
]]);
...
...
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