Comments (4)
Hi everyone,
Sorry for the late reply, but Magento 2.4.7-p1 and PHP 8.3 are supported from version 1.49.0 and 1.49.1.
from magento2.
Im waiting for this also.
from magento2.
Please note, that inline scripts on the checkout will stop working if they are not rendered with the secure renderer.
More about this here: https://developer.adobe.com/commerce/php/development/security/content-security-policies/#whitelist-an-inline-script-or-style
<script>
require(['buckaroo/mrcash/pay'], function (mrcashPay) {
var transactionKey = "<?= /* @noEscape */ ($block->getTransactionKey()); ?>";
mrcashPay.setTransactionKey(transactionKey);
mrcashPay.showQrCode();
});
cancelPayment = function() {
require(['buckaroo/mrcash/pay'], function (mrcashPay) {
mrcashPay.cancelPayment();
});
}
</script>
This should be either put into a variable or wrapped into ob_start() like this:
<?php
$key = $block->getTransactionKey();
$script = <<<JS
require(['buckaroo/payconiq/pay'], function (payconiqPay) {
var transactionKey = "$key";
payconiqPay.setTransactionKey(transactionKey);
payconiqPay.showQrCode();
});
cancelPayment = function() {
require(['buckaroo/payconiq/pay'], function (payconiqPay) {
payconiqPay.cancelPayment();
});
}
JS;
?>
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $script, false); ?>
This was recently backported from 2.4.7 to older versions with the latest security patch and is enabled by default. After upgrade to 2.4.5-p8 inline script added in a conventional unsafe way stopped to work.
from magento2.
Could you please provide an update on this ticket? We're experiencing the same problem and would be grateful for any news.
from magento2.
Related Issues (20)
- BP-2867 Fatal Error: with OneStepCheckout in GuestSaveManager.php HOT 7
- Test HOT 1
- Test 2 HOT 2
- BP-2901 Payal Express and Voucher using incorrect REST endpoint HOT 2
- TEST
- Compilation error HOT 2
- BP-2977 GraphQL issue with virtual products in cart resulting in an error (Magento 2.4.6-p1) HOT 3
- Incorrect error message HOT 5
- Orders state + status incorrectly updated to Pending (from Processing) HOT 14
- SoapFault error. HOT 1
- BP-3170 Redirect Process has no locking HOT 14
- BP-3329 Exl. tax and Incl. tax the same in checkout summary HOT 7
- BP-3361 Shipping address lost when Afterpay has error / is rejected. HOT 7
- BP-3465 Creditcard is grouped config not working correctly HOT 6
- Configuration path changes in 1.47.0 HOT 4
- BP-3564 Incorrect calculation of Grand Total Excluding Tax in js HOT 1
- Double store credit refunds when a error is received before redirecting to the buckaroo checkout. HOT 1
- BP-3689 Add CSP (Content Security Policy) improvements HOT 1
- non-existing class in doc block for Api/PaypalExpressQuoteCreateInterface.php
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2.