tpay-com / tpay-magento2-basic Goto Github PK
View Code? Open in Web Editor NEWMagento2 basic payments module
License: MIT License
Magento2 basic payments module
License: MIT License
With PHP8, this module throws an error during code compilation
PHP Fatal error: Declaration of tpaycom\magento2basic\Controller\tpay\Notification::createCsrfValidationException(Magento\Framework\App\RequestInterface $request) must be compatible with Magento\Framework\App\CsrfAwareActionInterface::createCsrfValidationException(Magento\Framework\App\RequestInterface $request): ?Magento\Framework\App\Request\InvalidRequestException in /builds/magento2/hyva-demo-package/vendor/tpaycom/magento2basic/Controller/tpay/Notification.php on line 109
Fixed in PR #37
Currently this module's composer.json
tpay-magento2-basic/composer.json
Line 14 in 82dc7a8
specifies a require on Magento's product-community-edition meta package, according to docs:
Do not specify a dependency on meta packages (e.g. product-community-edition).
Since mage-os uses a different meta-package this constraint cannot be satisfied.
PR #35 should fix this.
Po poprawnej płatności zamówienie zmienia swój status na "Processing", jednak stan ("state") pozostaje nie zmieniony (cały czas jest "pending_payment")
Due to some recent Csp security fixes, both versions of your module doesn't work.
VM11861:5 Refused to execute inline script because it violates the following Content Security Policy directive: "(...)" Either the 'unsafe-inline' keyword, a hash ('...'), or a nonce ('nonce-...') is required to enable inline execution.
The offending code I believe is:
The fix should be adding nonce attribute to the script as suggested in the console log.
Reference from Adobe: https://developer.adobe.com/commerce/php/development/security/content-security-policies/#using-csp-nonce-provider-to-allow-inline-scripts
EDIT: Also, it seems it's jQuery error: https://stackoverflow.com/a/42464060
Podczas próby instalacji z najnowszą wersją Magento 2.4, która wymaga PHP w wersji 7.3 lub 7.4 wyskakuje następujący błąd:
- tpaycom/magento2basic 1.5.1 requires magento/product-community-edition ^2.3 -> satisfiable by magento/product-community-edition[2.4.0].
Your repo is not registered on official composer repos, so installation via require tpaycom/magento2basic is not working
manual installation is also not working because there are other module names than you specified
"php bin/magento module:enable tpaycom_tpay" simply cannot handle it - check your repo structure
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.