placetopay/magento2-module-payments
Composer 安装命令:
composer require placetopay/magento2-module-payments
包简介
Shared component for accepting online payments in Magento 2 using the PlacetoPay payment gateway.
README 文档
README
PlacetoPay Plugin Payment for Magento 2 Stable
For more information about the component and the functionalities it offers, visit the following link Magento-Placetopay.
Prerequisites
php^7.4ext-bcmathext-ctypeext-curlext-gdext-hashext-iconvext-intlext-mbstringext-opensslext-pdo_mysqlext-xmlext-soapext-splext-xslext-ziplib-libxmlcomposer@latestdatabaseMySQL5.7MariaDB10.*
web serverapache2.2 or 2.4 with mod_rewrite and mod_versionsnginx1.*
Compatibility Version
| Magento | Plugin | Comments |
|---|---|---|
| 2.4.4+ | ~2.1.0 | From 2.1.x |
Note: Plugin 2.1.x requires Magento 2.4.4+ and PHP 7.4+. Earlier versions are not supported.
View releases here
Manual Installation
Create PlacetoPay\Payments folder (this is required, with this name)
mkdir /var/www/html/app/code/PlacetoPay/Payments
Clone Project in modules
git clone https://github.com/placetopay-org/magento2-placetopay.git /var/www/html/app/code/PlacetoPay/Payments
Set permissions and install dependencies with composer
cd /var/www/html \ && composer require alejociro/redirection \ && cd app/code/PlacetoPay/Payments \ && sudo setfacl -dR -m u:www-data:rwX -m u:`whoami`:rwX `pwd` \ && sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX `pwd`
Set up the module by running the following commands:
cd /var/www/html \ && bin/magento setup:upgrade \ && bin/magento cache:flush \ && bin/magento cache:clean
If you run Magento in production mode, you also must compile and deploy the module’s static files:
cd /var/www/html \ && bin/magento setup:upgrade \ && bin/magento setup:di:compile \ && bin/magento setup:static-content:deploy \ && bin/magento cache:flush \ && bin/magento cache:clean
If for some reasons, the language not show in spanish, run these commands:
cd /var/www/html \ && bin/magento setup:static-content:deploy es_ES \ && bin/magento setup:static-content:deploy es_CO \ && bin/magento setup:static-content:deploy -f \ && bin/magento cache:flush \ && bin/magento cache:clean
Composer Installation
Set up the module by running the following commands:
cd /var/www/html \ && composer require placetopay/magento2-module-payments \ && bin/magento module:enable PlacetoPay_Payments --clear-static-content \ && bin/magento setup:upgrade \ && bin/magento cache:flush \ && bin/magento cache:clean
If you run Magento in production mode, you also must compile and deploy the module’s static files:
cd /var/www/html \ && bin/magento setup:di:compile \ && bin/magento setup:static-content:deploy \ && bin/magento cache:flush \ && bin/magento cache:clean
If for some reasons, the language not show in spanish, run these commands:
cd /var/www/html \ && bin/magento setup:static-content:deploy es_ES \ && bin/magento setup:static-content:deploy es_CO \ && bin/magento setup:static-content:deploy -f \ && bin/magento cache:flush \ && bin/magento cache:clean
Docker Installation
First, you must edit the auth.json, follow the next instructions:
cd /path/to/magento/.docker/magento-{version}
cp auth.json.example auth.json
For install magento 2, just exec this command in terminal, make sure you can execute make commands
cd /var/www/html/
make build-magento-{version}
Then... (Please wait few minutes, while install ALL and load Apache :D to continue), you can go to
If you want, go to /etc/hosts file and add the next line:
sudo vim /etc/hosts
add -> 127.0.0.1 magento.test
Magento 2 Admin Access
- user: admin@admin.com
- password: Admin12*
MySQL Access
- user: root
- password: root
- database: magento
See details in docker-compose.yml file or run make config command
if you wat to change the users and passwords, edit the env file.
Customize docker installation
Default versions
- Magento: 2.4.4 (minimum supported)
- PHP: 7.4 (minimum supported)
- MySQL: 5.6.23
You can change versions in .docker/Dockerfile
MAGENTO_VERSION
If you find an error in the docker installation process, you must verify and update the github-oauth in auth.json, to do so, you must log in your github personal account and go to the settings, then click on the developer settings option and generate a personal access token.
Quality
During package development I try as best as possible to embrace good design and development practices, to help ensure that this package is as good as it can be. My checklist for package development includes:
- Be fully PSR1, PSR2, and PSR4 compliant.
- Include comprehensive documentation in README.md.
- Provide an up-to-date CHANGELOG.md which adheres to the format outlined at keepachangelog.
- Have no phpcs warnings throughout all code, use
composer testcommand.
placetopay/magento2-module-payments 适用场景与选型建议
placetopay/magento2-module-payments 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8.92k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 11 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 placetopay/magento2-module-payments 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 placetopay/magento2-module-payments 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 8.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2019-11-20