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
d70c3a0c
Commit
d70c3a0c
authored
Jun 22, 2016
by
Rik ter Beek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#51 add https for 3d secure page return if shop is on https
parent
403f01e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
Block/Redirect/Validate3d.php
Block/Redirect/Validate3d.php
+19
-2
No files found.
Block/Redirect/Validate3d.php
View file @
d70c3a0c
...
...
@@ -40,6 +40,11 @@ class Validate3d extends \Magento\Payment\Block\Form
* @var \Magento\Checkout\Model\Order
*/
protected
$_order
;
/**
* @var \Magento\Framework\App\RequestInterface
*/
protected
$_request
;
/**
* Validate3d constructor.
...
...
@@ -53,10 +58,12 @@ class Validate3d extends \Magento\Payment\Block\Form
\Magento\Framework\View\Element\Template\Context
$context
,
array
$data
=
[],
\Magento\Sales\Model\OrderFactory
$orderFactory
,
\Magento\Checkout\Model\Session
$checkoutSession
\Magento\Checkout\Model\Session
$checkoutSession
,
\Magento\Framework\App\RequestInterface
$request
)
{
$this
->
_orderFactory
=
$orderFactory
;
$this
->
_checkoutSession
=
$checkoutSession
;
$this
->
_request
=
$request
;
parent
::
__construct
(
$context
,
$data
);
$this
->
_getOrder
();
}
...
...
@@ -114,8 +121,18 @@ class Validate3d extends \Magento\Payment\Block\Form
*/
public
function
getTermUrl
()
{
return
$this
->
getUrl
(
'adyen/process/validate3d'
);
return
$this
->
getUrl
(
'adyen/process/validate3d'
,
[
'_secure'
=>
$this
->
_getRequest
()
->
isSecure
()]);
}
/**
* Retrieve request object
*
* @return \Magento\Framework\App\RequestInterface
*/
protected
function
_getRequest
()
{
return
$this
->
_request
;
}
}
\ No newline at end of file
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