{"hits": [{"proj": "hyva-themes/hyva-compat/magento2-paypal-braintree", "file": "src/view/frontend/templates/applepay/button.phtml", "ref": "main", "q": "token", "data": "        x-init=\"$nextTick(() => { init() })\"\n        data-success=\"<?= $escaper->escapeUrl($block->getActionSuccess()); ?>\"\n        data-client-token=\"<?= $escaper->escapeHtmlAttr($block->getClientToken()); ?>\"\n        data-display-name=\"<?= $escaper->escapeHtmlAttr($block->getMerchantName()); ?>\"\n        data-amount=\"<?= $escaper->escapeHtmlAttr(number_format((float)$block->getAmount(), 2, '.', '"}, {"proj": "hyva-themes/hyva-compat/magento2-paypal-braintree", "file": "src/view/frontend/templates/applepay/express-js.phtml", "ref": "main", "q": "token", "data": "\n                // context must implement these methods/have this data\n                if (!context.clientToken) {\n                    console.error(\n                        '<?= $escaper->escapeJs(__('Braintree ApplePay Context passed does not provide a client token')); ?>',\n                        context\n                    );\n"}, {"proj": "hyva-themes/hyva-compat/magento2-paypal-braintree", "file": "src/view/frontend/templates/googlepay/button.phtml", "ref": "main", "q": "token", "data": "        x-data=\"initBraintreeGooglePayExpress(\n            '<?= $escaper->escapeHtmlAttr($block->getMerchantId()); ?>',\n            '<?= $escaper->escapeHtmlAttr($block->getClientToken()); ?>'\n        )\"\n        x-init=\"$nextTick(() => { init() })\"\n"}, {"proj": "hyva-themes/hyva-compat/magento2-paypal-braintree", "file": "src/view/frontend/templates/googlepay/express-js.phtml", "ref": "main", "q": "token", "data": "<script>\n    // Functionality directly ported from original uiComponent, with minor modifications to work with Alpine\n    function initBraintreeGooglePayExpress(merchantId, clientToken)\n    {\n        return {\n            merchantId: merchantId,\n            clientToken: clientToken,\n            buttonApi: {},\n            init()\n"}, {"proj": "hyva-themes/hyva-compat/magento2-paypal-braintree", "file": "src/view/frontend/templates/paypal/button.phtml", "ref": "main", "q": "token", "data": "    <div class=\"paypal paypal1 checkout paypal-logo braintree-paypal-logo <?= $escaper->escapeHtmlAttr($block->getContainerId()); ?>-container\">\n        <div x-data=\"initBraintreePayPalExpress(\n                 '<?= $escaper->escapeHtmlAttr($block->getClientToken()); ?>',\n                 '<?= $escaper->escapeHtmlAttr($block->getCurrency()) ?>'\n             )\"\n"}, {"proj": "hyva-themes/hyva-compat/magento2-paypal-braintree", "file": "src/view/frontend/templates/paypal/express-js.phtml", "ref": "main", "q": "token", "data": "<script>\n    // Functionality directly ported from original uiComponent, with minor modifications to work with Alpine\n    function initBraintreePayPalExpress(clientToken, currency)\n    {\n        return {\n            clientToken: clientToken,\n            currency: currency,\n            cart: null,\n"}], "errors": []}