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
096ab11b
Commit
096ab11b
authored
Feb 21, 2019
by
Rik ter Beek
Committed by
attilak
May 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for banktransfer_iban
parent
49eb6c4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
18 deletions
+53
-18
Block/Checkout/Success.php
Block/Checkout/Success.php
+10
-0
Block/Info/Hpp.php
Block/Info/Hpp.php
+25
-0
Gateway/Validator/CheckoutResponseValidator.php
Gateway/Validator/CheckoutResponseValidator.php
+18
-18
No files found.
Block/Checkout/Success.php
View file @
096ab11b
...
...
@@ -104,6 +104,16 @@ class Success extends \Magento\Framework\View\Element\Template
return
null
;
}
public
function
getBankTransferData
()
{
$result
=
[];
if
(
!
empty
(
$this
->
getOrder
()
->
getPayment
()
->
getAdditionalInformation
(
'bankTransfer.owner'
)))
{
$result
=
$this
->
getOrder
()
->
getPayment
()
->
getAdditionalInformation
();
}
return
$result
;
}
/**
* Get Banktransfer additional data
*
...
...
Block/Info/Hpp.php
View file @
096ab11b
...
...
@@ -75,6 +75,31 @@ class Hpp extends AbstractInfo
return
$this
->
getInfo
()
->
getOrder
();
}
/**
* Get all Banktransfer related data
*
* @return array
* @throws \Magento\Framework\Exception\LocalizedException
*/
public
function
getBankTransferData
()
{
$result
=
[];
if
(
!
empty
(
$this
->
getInfo
()
->
getOrder
()
->
getPayment
()
->
getAdditionalInformation
(
'bankTransfer.owner'
)))
{
$result
=
$this
->
getInfo
()
->
getOrder
()
->
getPayment
()
->
getAdditionalInformation
();
}
return
$result
;
}
/**
* @return mixed
* @throws \Magento\Framework\Exception\LocalizedException
*/
public
function
getOrder
()
{
return
$this
->
getInfo
()
->
getOrder
();
}
/**
* @return null
* @throws \Magento\Framework\Exception\LocalizedException
...
...
Gateway/Validator/CheckoutResponseValidator.php
View file @
096ab11b
...
...
@@ -27,24 +27,24 @@ use Magento\Payment\Gateway\Validator\AbstractValidator;
class
CheckoutResponseValidator
extends
AbstractValidator
{
/**
* @var \Adyen\Payment\Logger\AdyenLogger
*/
private
$adyenLogger
;
/**
* GeneralResponseValidator constructor.
*
* @param \Magento\Payment\Gateway\Validator\ResultInterfaceFactory $resultFactory
* @param \Adyen\Payment\Logger\AdyenLogger $adyenLogger
*/
public
function
__construct
(
\Magento\Payment\Gateway\Validator\ResultInterfaceFactory
$resultFactory
,
\Adyen\Payment\Logger\AdyenLogger
$adyenLogger
)
{
$this
->
adyenLogger
=
$adyenLogger
;
parent
::
__construct
(
$resultFactory
);
}
/**
* @var \Adyen\Payment\Logger\AdyenLogger
*/
private
$adyenLogger
;
/**
* GeneralResponseValidator constructor.
*
* @param \Magento\Payment\Gateway\Validator\ResultInterfaceFactory $resultFactory
* @param \Adyen\Payment\Logger\AdyenLogger $adyenLogger
*/
public
function
__construct
(
\Magento\Payment\Gateway\Validator\ResultInterfaceFactory
$resultFactory
,
\Adyen\Payment\Logger\AdyenLogger
$adyenLogger
)
{
$this
->
adyenLogger
=
$adyenLogger
;
parent
::
__construct
(
$resultFactory
);
}
/**
* @param array $validationSubject
...
...
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