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
1580c22d
Commit
1580c22d
authored
Jan 03, 2018
by
basm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PW-261 Removed the detailed refusal reasons
Additional information in Comments history
parent
331edac8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
Controller/Process/Result.php
Controller/Process/Result.php
+24
-8
Controller/Process/Validate3d.php
Controller/Process/Validate3d.php
+4
-3
No files found.
Controller/Process/Result.php
View file @
1580c22d
...
...
@@ -211,23 +211,30 @@ class Result extends \Magento\Framework\App\Action\Action
$type
,
$authResult
,
$pspReference
,
$paymentMethod
);
$history
=
$this
->
_orderHistoryFactory
->
create
()
//->setStatus($status)
->
setComment
(
$comment
)
->
setEntityName
(
'order'
)
->
setOrder
(
$order
)
;
$history
->
save
();
// needed because then we need to save $order objects
$order
->
setAdyenResulturlEventCode
(
$authResult
);
switch
(
$authResult
)
{
case
Notification
::
AUTHORISED
:
$result
=
true
;
$this
->
_adyenLogger
->
addAdyenResult
(
'Do nothing wait for the notification'
);
break
;
case
Notification
::
PENDING
:
// do nothing wait for the notification
$result
=
true
;
if
(
strpos
(
$paymentMethod
,
"bankTransfer"
)
!==
false
){
$comment
.=
"<br /><br />Waiting for the customer to transfer the money."
;
}
elseif
(
$paymentMethod
==
"sepadirectdebit"
){
$comment
.=
"<br /><br />This request will be send to the bank at the end of the day."
;
}
else
{
$comment
.=
"<br /><br />The payment result is not confirmed (yet).
<br />Once the payment is authorised, the order status will be updated accordingly.
<br />If the order is stuck on this status, the payment can be seen as unsuccessful.
<br />The order can be automatically cancelled based on the OFFER_CLOSED notification. Please contact Adyen Support to enable this."
;
}
$this
->
_adyenLogger
->
addAdyenResult
(
'Do nothing wait for the notification'
);
break
;
case
Notification
::
CANCELLED
:
...
...
@@ -250,6 +257,15 @@ class Result extends \Magento\Framework\App\Action\Action
break
;
}
$history
=
$this
->
_orderHistoryFactory
->
create
()
//->setStatus($status)
->
setComment
(
$comment
)
->
setEntityName
(
'order'
)
->
setOrder
(
$order
)
;
$history
->
save
();
return
$result
;
}
...
...
Controller/Process/Validate3d.php
View file @
1580c22d
...
...
@@ -156,9 +156,10 @@ class Validate3d extends \Magento\Framework\App\Action\Action
}
else
{
$this
->
_adyenLogger
->
addAdyenResult
(
"Customer was redirected to bank for 3D-secure validation."
);
$order
->
addStatusHistoryComment
(
__
(
'Customer was redirected to bank for 3D-secure validation.'
)
)
->
save
();
__
(
'Customer was redirected to bank for 3D-secure validation. Once the shopper authenticated, the order status will be updated accordingly.
<br />Make sure that your notifications are being processed!
<br />If the order is stuck on this status, the shopper abandoned the session. The payment can be seen as unsuccessful.
<br />The order can be automatically cancelled based on the OFFER_CLOSED notification. Please contact Adyen Support to enable this.'
))
->
save
();
$this
->
_view
->
loadLayout
();
$this
->
_view
->
getLayout
()
->
initMessages
();
$this
->
_view
->
renderLayout
();
...
...
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