Skip to content

Commit

Permalink
checkout config is not passing from react-container.phtml
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev-k-tomy committed Feb 3, 2022
1 parent 92cfb4e commit 3617cd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/reactapp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ build
public/tailwind.output.css
public/styles.css
src/paymentMethods/*
!src/paymentMethods/paymentConfig.json
!src/paymentMethods/customRenderers.js
!src/paymentMethods/i18nProvider.js
!src/paymentMethods/utility
2 changes: 1 addition & 1 deletion src/view/frontend/templates/react-container.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $configProvider = $block->getData('checkout_config_provider');
<div
id="react-checkout"
data-base_url="<?= $block->getBaseUrl() ?>"
data-base_url="<?= $escaper->escapeUrl($block->getBaseUrl()) ?>"
data-checkout_config="<?= $escaper->escapeHtmlAttr($configProvider->getConfig()) ?>"
data-static_file_path="<?= $escaper->escapeUrl($block->getViewFileUrl('Hyva_ReactCheckout')) ?>"
>
<div class="container">
Expand Down

0 comments on commit 3617cd5

Please sign in to comment.