Skip to content

Commit 0c7a9ed

Browse files
authored
Merge pull request #141 from magebitcom/feature/MB-26226
MB-26226 Fix broken checkout caused by Magento 2.4.7-p1 update
2 parents 66f4ad1 + c984ce4 commit 0c7a9ed

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"magento/framework": ">=103.0.1"
77
},
88
"type": "magento2-module",
9-
"version": "0.8.1",
9+
"version": "0.9.0",
1010
"autoload": {
1111
"files": [
1212
"registration.php"

view/frontend/templates/config.phtml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
<script>
2-
window.leanpayConfig = <?= /* @noEscape */ $block->getConfig(); ?>;
3-
</script>
1+
<?php
2+
/** @var \Leanpay\Payment\Block\LeanpayConfig $block */
3+
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
4+
?>
5+
6+
<?php
7+
$scriptString = <<<script
8+
window.leanpayConfig = {$block->getConfig()};
9+
script;
10+
?>
11+
12+
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>

0 commit comments

Comments
 (0)