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-paypal
view
frontend
templates
express
in-context
component.phtml
Go to the documentation of this file.
1
<?php
6
use
Magento\Paypal\Block\Express\InContext\Minicart\Button
;
7
10
$configuration
= [
11
'*'
=> [
12
'Magento_Paypal/js/in-context/express-checkout'
=> [
13
'id'
=> Button::PAYPAL_BUTTON_ID,
14
'path'
=>
$block
->getUrl(
15
'paypal/express/gettoken'
,
16
[
17
'_secure'
=>
$block
->getRequest()->isSecure()
18
]
19
),
20
'merchantId'
=>
$block
->getMerchantId(),
21
'button'
=>
$block
->isButtonContext(),
22
'clientConfig'
=> [
23
'locale'
=>
$block
->getLocale(),
24
'environment'
=>
$block
->getEnvironment(),
25
'button'
=> [
26
Button::PAYPAL_BUTTON_ID,
27
],
28
]
29
]
30
]
31
];
32
33
?>
34
<div style=
"display: none;"
id
=
"<?= /* @noEscape */ Button::PAYPAL_BUTTON_ID ?>"
></div>
35
<script type=
"text/x-magento-init"
>
36
<?=
/* @noEscape */
json_encode(
$configuration
) ?>
37
</script>
$block
$block
Definition:
block.php:8
$configuration
$configuration
Definition:
component.phtml:10
Magento\Paypal\Block\Express\InContext\Minicart\Button
Definition:
Button.php:21