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
frontend
templates
paypal
button.phtml
Go to the documentation of this file.
1
<?php
11
$id
=
$block
->getContainerId() . mt_rand();
12
13
$config
= [
14
'Magento_Braintree/js/paypal/button'
=> [
15
'id'
=>
$id
,
16
'clientToken'
=>
$block
->getClientToken(),
17
'displayName'
=>
$block
->getMerchantName(),
18
'actionSuccess'
=>
$block
->getActionSuccess()
19
]
20
];
21
22
?>
23
<div data-
mage
-init=
'<?= /* @noEscape */ json_encode($config) ?>'
24
class
=
"paypal checkout paypal-logo braintree-paypal-logo<?= /* @noEscape */ $block->getContainerId() ?>-container"
>
25
<button data-currency=
"<?= /* @noEscape */ $block->getCurrency() ?>"
26
data-locale=
"<?= /* @noEscape */ $block->getLocale() ?>"
27
data-
amount
=
"<?= /* @noEscape */ $block->getAmount() ?>"
28
id
=
"<?= /* @noEscape */ $id ?>"
29
class
=
"action-braintree-paypal-logo"
disabled>
30
<img
class
=
"braintree-paypal-button-hidden"
31
src=
"https://checkout.paypal.com/pwpp/2.17.6/images/pay-with-paypal.png"
32
alt=
"<?= $block->escapeHtml(__('Pay with PayPal')) ?>"
33
title=
"<?= $block->escapeHtml(__('Pay with PayPal')) ?>"
/>
34
</button>
35
</div>
$id
$id
Definition:
button.phtml:11
amount
if( $block->displayPriceExclTax()||$block->displayBothPrices())(__('Excl. Tax')) ?>"> <?php if ($block -> displayPriceWithWeeeDetails()): ?> <span class="cart-tax-total" data-mage-init=' Magento Weee Helper Data Magento Weee Helper Data title amount
Definition:
unit.phtml:68
mage
if( $form)() ?>< script > require(['jquery' mage mage
Definition:
save.phtml:15
$block
$block
Definition:
block.php:8
$config
$config
Definition:
button.phtml:13