1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?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
*/
?>
<?= $block->escapeHtml($block->getMethod()->getTitle()); ?>
<?php
$_info = $block->getInfo();
$_isDemoMode = $block->isDemoMode();
?>
<?php if ($_pspReference = $_info->getAdditionalInformation('pspReference')): ?>
<div>
<?php if ($_isDemoMode): ?>
<?= $block->escapeHtml(__('Adyen PSP Reference: ')); ?>
<a href="https://ca-test.adyen.com/ca/ca/accounts/showTx.shtml?pspReference=<?= $block->escapeHtml(
$_pspReference
); ?>&txType=Payment" target="_blank"><?= $block->escapeHtml($_pspReference); ?></a>
<?php else: ?>
<?= $block->escapeHtml(__('Adyen PSP Reference: ')); ?>
<a href="https://ca-live.adyen.com/ca/ca/accounts/showTx.shtml?pspReference=<?= $block->escapeHtml(
$_pspReference
); ?>&txType=Payment" target="_blank"><?= $block->escapeHtml($_pspReference); ?></a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($_brandCode = $_info->getAdditionalInformation('brand_code')): ?>
<div><?= $block->escapeHtml(__('Payment Method: %1', $_brandCode)); ?></div>
<?php endif; ?>
<?php if (!empty($block->getBankTransferData())): ?>
<?php
$banktranferData = $block->getBankTransferData();
$order = $block->getOrder();
?>
<div>
<table class="edit-order-table" style="text-align:left; margin-top:5px; margin-bottom:0;">
<tbody>
<?php if (!empty($order->getGrandTotal())): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('Amount')); ?></th>
<td><?= /* @noEscape */ $order->formatPrice($order->getGrandTotal()); ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($banktranferData['bankTransfer.reference'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('With reference')); ?></th>
<td><?= $block->escapeHtml($banktranferData['bankTransfer.reference']); ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($banktranferData['bankTransfer.owner'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('Beneficiary Name')); ?></th>
<td><?= $block->escapeHtml($banktranferData['bankTransfer.owner']); ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($banktranferData['bankTransfer.bankName'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('Bank')); ?></th>
<td><?= $block->escapeHtml($banktranferData['bankTransfer.bankName']); ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($banktranferData['bankTransfer.iban'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('IBAN')); ?></th>
<td><?= $block->escapeHtml($banktranferData['bankTransfer.iban']); ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($banktranferData['bankTransfer.accountCode'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('Bankaccount')); ?></th>
<td><?= $block->escapeHtml($banktranferData['bankTransfer.accountCode']); ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<?php elseif (!empty($block->getMultibancoData())): ?>
<?php
$multibancoData = $block->getMultibancoData();
?>
<div>
<table class="edit-order-table" style="text-align:left; margin-top:5px; margin-bottom:0;">
<tbody>
<?php if (!empty($multibancoData['comprafacil.entity'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('Entity')); ?></th>
<td><?= $block->escapeHtml($multibancoData['comprafacil.entity']); ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($multibancoData['comprafacil.reference'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('Reference')); ?></th>
<td><?= $block->escapeHtml($multibancoData['comprafacil.reference']); ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($multibancoData['comprafacil.amount'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('Amount')); ?></th>
<td><?= $block->escapeHtml($multibancoData['comprafacil.amount']); ?></td>
</tr>
<?php endif; ?>
<?php if (!empty($multibancoData['comprafacil.deadline'])): ?>
<tr>
<th scope="row"><?= $block->escapeHtml(__('Deadline')); ?></th>
<td><?= $block->escapeHtml($multibancoData['comprafacil.deadline']); ?><?= $block->escapeHtml(
__('Days')
); ?></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<?php endif; ?>
<?php if ($_info->getAdditionalInformation('adyen_total_fraud_score') != ""): ?>
<?= $block->escapeHtml(__('Total fraud score: ')); ?>
<?= $block->escapeHtml($_info->getAdditionalInformation('adyen_total_fraud_score')); ?>
<br/>
<?php endif; ?>
<?php if ($block->getSplitPayments()): ?>
<table class="edit-order-table">
<tr>
<th scope="col">PspReference</th>
<th scope="col">Payment Method</th>
<th scope="col">Amount</th>
<th scope="col">Refunded</th>
</tr>
<?php foreach ($block->getSplitPayments() as $payment): ?>
<tr>
<td><?= $block->escapeHtml($payment->getPspreference()); ?></td>
<td><?= $block->escapeHtml($payment->getPaymentMethod()); ?></td>
<td><?= $block->escapeHtml($payment->getAmount()); ?></td>
<td><?= $block->escapeHtml($payment->getTotalRefunded()); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<?php if ($_specificInfo = $block->getSpecificInformation()): ?>
<table class="data-table admin__table-secondary">
<?php foreach ($_specificInfo as $_label => $_value): ?>
<tr>
<th scope="row"><?= $block->escapeHtml($_label) ?>:</th>
<td><?= $block->escapeHtml(nl2br(implode("\n", $block->getValueAsArray($_value, true)))); ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<?php if ($ratepayDescriptor = $_info->getAdditionalInformation('adyen_ratepay_descriptor')): ?>
<div><?= $block->escapeHtml(__('Invoice Descriptor: %1', $ratepayDescriptor)); ?>
</div>
<?php endif; ?>
<?= $block->escapeHtml($block->getChildHtml()); ?>