Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-braintree
view
adminhtml
templates
form
vault.phtml
Go to the documentation of this file.
1
<?php
2
use
Magento\Vault\Model\Ui\TokenUiComponentProviderInterface
;
7
// @codingStandardsIgnoreFile
8
10
$details
=
$block
->getData(TokenUiComponentProviderInterface::COMPONENT_DETAILS);
11
$icon
=
$block
->getData(
'icons'
)[
$details
[
'type'
]];
12
$id
=
$block
->escapeHtml(
$block
->getData(
'id'
));
13
?>
14
<div data-
mage
-init=
'{
15
"Magento_Braintree/js/vault": {
16
"container": "payment_<?= /* @noEscape */ $id ?>",
17
"publicHash": "<?= $block->escapeHtml($block->getData(TokenUiComponentProviderInterface::COMPONENT_PUBLIC_HASH)) ?>",
18
"code": "<?= $block->escapeHtml($block->getData('
code
')) ?>",
19
"nonceUrl": "<?= $block->escapeUrl($block->getData('
nonceUrl
')) ?>"
20
}
21
}'
id
=
"payment_<?= /* @noEscape */ $id ?>"
class
=
"admin__field"
>
22
<div
class
=
"admin__field-control control"
>
23
<input type=
"radio"
id
=
"token_switcher_<?= /* @noEscape */ $id ?>"
name
=
"payment[token_switcher]"
/>
24
<img src=
"<?= $block->escapeUrl($icon['url']) ?>"
25
width=
"<?= $block->escapeHtml($icon['width']) ?>"
26
height
=
"<?= $block->escapeHtml($icon['height']) ?>"
27
class
=
"payment-icon"
>
28
<span><?=
$block
->escapeHtml(
__
(
'ending'
)) ?></span>
29
<span><?=
$block
->escapeHtml(
$details
[
'maskedCC'
]) ?></span>
30
(<span><?=
$block
->escapeHtml(
__
(
'expires'
)) ?></span>:
31
<span><?=
$block
->escapeHtml(
$details
[
'expirationDate'
]) ?></span>)
32
</div>
33
</div>
$icon
$icon
Definition:
vault.phtml:11
$id
$id
Definition:
vault.phtml:12
$details
$details
Definition:
vault.phtml:10
mage
if( $form)() ?>< script > require(['jquery' mage mage
Definition:
save.phtml:15
__
__()
Definition:
__.php:13
$block
$block
Definition:
block.php:8
name
Magento\Vault\Model\Ui\TokenUiComponentProviderInterface
Definition:
TokenUiComponentProviderInterface.php:16
height
if($block->getLink()) line height
Definition:
email.phtml:11