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
cc77e62f
Commit
cc77e62f
authored
Dec 19, 2018
by
Scott Powell
Committed by
GitHub
Dec 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #363 from Adyen/3ds-fix
PW-882: Fix 3dsecure for M2.3, fix captureonshipment
parents
eb2dd086
4fac680e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Controller/Process/Validate3d.php
Controller/Process/Validate3d.php
+8
-0
Observer/Adminhtml/BeforeShipmentObserver.php
Observer/Adminhtml/BeforeShipmentObserver.php
+1
-1
No files found.
Controller/Process/Validate3d.php
View file @
cc77e62f
...
...
@@ -22,6 +22,7 @@
*/
namespace
Adyen\Payment\Controller\Process
;
use
Magento\Framework\App\Request\Http
as
HttpRequest
;
class
Validate3d
extends
\Magento\Framework\App\Action\Action
{
...
...
@@ -75,6 +76,13 @@ class Validate3d extends \Magento\Framework\App\Action\Action
$this
->
_adyenHelper
=
$adyenHelper
;
$this
->
_paymentRequest
=
$paymentRequest
;
$this
->
_orderRepository
=
$orderRepository
;
// Fix for Magento2.3 adding isAjax to the request params
if
(
interface_exists
(
"\Magento\Framework\App\CsrfAwareActionInterface"
))
{
$request
=
$this
->
getRequest
();
if
(
$request
instanceof
HttpRequest
&&
$request
->
isPost
())
{
$request
->
setParam
(
'isAjax'
,
true
);
}
}
}
/**
...
...
Observer/Adminhtml/BeforeShipmentObserver.php
View file @
cc77e62f
...
...
@@ -54,7 +54,7 @@ class BeforeShipmentObserver extends AbstractDataAssignObserver
{
$shipment
=
$observer
->
getEvent
()
->
getShipment
();
$order
=
$shipment
->
getOrder
();
$captureOnShipment
=
$this
->
_
adyenHelper
->
getConfigData
(
'capture_on_shipment'
,
'adyen_abstract'
,
$order
->
getStoreId
());
$captureOnShipment
=
$this
->
adyenHelper
->
getConfigData
(
'capture_on_shipment'
,
'adyen_abstract'
,
$order
->
getStoreId
());
if
(
$this
->
isPaymentMethodAdyen
(
$order
)
&&
$captureOnShipment
)
{
$payment
=
$order
->
getPayment
();
...
...
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