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
6092fa72
Commit
6092fa72
authored
May 25, 2016
by
rikterbeek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add own backend template for payment method adyen POS
parent
cc63d478
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
Model/Method/Pos.php
Model/Method/Pos.php
+3
-0
view/adminhtml/templates/info/adyen_pos.phtml
view/adminhtml/templates/info/adyen_pos.phtml
+63
-0
No files found.
Model/Method/Pos.php
View file @
6092fa72
...
...
@@ -47,6 +47,9 @@ class Pos extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa
*/
const
GUEST_ID
=
'customer_'
;
/**
* @var string
*/
protected
$_infoBlockType
=
'Adyen\Payment\Block\Info\Pos'
;
/**
...
...
view/adminhtml/templates/info/adyen_pos.phtml
0 → 100644
View file @
6092fa72
<?php
/**
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen Payment module (https://www.adyen.com/)
*
* Copyright (c) 2015 Adyen BV (https://www.adyen.com/)
* See LICENSE.txt for license details.
*
* Author: Adyen <magento@adyen.com>
*/
// @codingStandardsIgnoreFile
?>
<?php
/**
* @see \Magento\Payment\Block\Info
*/
?>
<?php
echo
$block
->
escapeHtml
(
$block
->
getMethod
()
->
getTitle
())
?>
<?php
$_info
=
$this
->
getInfo
();
$_isDemoMode
=
$block
->
isDemoMode
();
?>
<?php
if
(
$_pspReference
=
$_info
->
getAdditionalInformation
(
'pspReference'
))
:
?>
<div>
<?php
if
(
$_isDemoMode
)
:
?>
<?php
echo
__
(
'Adyen PSP Reference: <a href="https://ca-test.adyen.com/ca/ca/accounts/showTx.shtml?pspReference=%1&txType=Payment" target="__blank">%1</a>'
,
$block
->
escapeHtml
(
$_pspReference
),
$block
->
escapeHtml
(
$_pspReference
))
?>
<?php
else
:
?>
<?php
echo
__
(
'Adyen PSP Reference: <a href="https://ca-live.adyen.com/ca/ca/accounts/showTx.shtml?pspReference=%1&txType=Payment" target="__blank">%1</a>'
,
$block
->
escapeHtml
(
$_pspReference
),
$block
->
escapeHtml
(
$_pspReference
))
?>
<?php
endif
;
?>
</div>
<?php
endif
;
?>
<?php
if
(
$_info
->
getAdditionalInformation
(
'adyen_total_fraud_score'
)
!=
""
)
:
?>
<?php
echo
__
(
'Total fraud score: %1'
,
$_info
->
getAdditionalInformation
(
'adyen_total_fraud_score'
))
?>
<br/>
<?php
endif
;
?>
<?php
if
(
$_specificInfo
=
$block
->
getSpecificInformation
())
:
?>
<table
class=
"data-table admin__table-secondary"
>
<?php
foreach
(
$_specificInfo
as
$_label
=>
$_value
)
:
?>
<tr>
<th>
<?php
echo
$block
->
escapeHtml
(
$_label
)
?>
:
</th>
<td>
<?php
echo
nl2br
(
implode
(
"
\n
"
,
$block
->
getValueAsArray
(
$_value
,
true
)))
?>
</td>
</tr>
<?php
endforeach
;
?>
</table>
<?php
endif
;
?>
<?php
echo
$block
->
getChildHtml
()
?>
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