placetopay / magento2-module-payments
在 Magento 2 中使用 PlacetoPay 支付网关接受在线付款的共享组件。
Requires
- php: >=7.2
- ext-json: *
Requires (Dev)
- magento/framework: >=101.0.8 <102 || >=102.0.1
- magento/magento-coding-standard: *
- magento/module-vault: 101.*
- dev-master
- 1.12.0
- 1.11.2
- 1.11.1
- 1.11.0
- 1.10.1
- 1.10.0
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.11
- 1.8.10
- 1.8.9
- 1.8.8
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- v1.6.2
- v1.6.1
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.2
- 1.0.0
- dev-develop
- dev-feature/update-chile-translations
This package is auto-updated.
Last update: 2024-09-06 20:05:49 UTC
README
PlacetoPay 为 Magento 2 提供的稳定插件支付
有关组件及其提供的功能的信息,请访问以下链接 Magento-Placetopay。
先决条件
php
^7.1ext-bcmath
ext-ctype
ext-curl
ext-gd
ext-hash
ext-iconv
ext-intl
ext-mbstring
ext-openssl
ext-pdo_mysql
ext-xml
ext-soap
ext-spl
ext-xsl
ext-zip
lib-libxml
composer
@latest数据库
MySQL
5.7MariaDB
10.*
Web 服务器
apache
2.2 或 2.4,带有 mod_rewrite 和 mod_versionsnginx
1.*
兼容性版本
在此处查看发布版本 here
手动安装
创建 PlacetoPay\Payments
文件夹(这是必需的,名称必须是这个)
mkdir /var/www/html/app/code/PlacetoPay/Payments
在模块中克隆项目
git clone https://github.com/placetopay-org/magento2-placetopay.git /var/www/html/app/code/PlacetoPay/Payments
设置权限并使用 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`
通过运行以下命令设置模块
cd /var/www/html \ && bin/magento setup:upgrade \ && bin/magento cache:flush \ && bin/magento cache:clean
如果您以生产模式运行 Magento,您还必须编译和部署模块的静态文件
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
如果由于某些原因,语言未显示为西班牙语,请运行以下命令
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 安装
通过运行以下命令设置模块
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
如果您以生产模式运行 Magento,您还必须编译和部署模块的静态文件
cd /var/www/html \ && bin/magento setup:di:compile \ && bin/magento setup:static-content:deploy \ && bin/magento cache:flush \ && bin/magento cache:clean
如果由于某些原因,语言未显示为西班牙语,请运行以下命令
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 安装
首先,您必须编辑 auth.json,按照以下说明操作
cd /path/to/magento/.docker/magento-{version}
cp auth.json.example auth.json
要安装 Magento 2,只需在终端中执行此命令,确保您可以执行 make 命令
cd /var/www/html/
make build-magento-{version}
然后...(请等待几分钟,安装 ALL 并加载 Apache :D 继续操作),您可以去
如果您想,请转到 /etc/hosts 文件并添加以下行
sudo vim /etc/hosts
add -> 127.0.0.1 magento.test
Magento 2 管理员访问
- 用户: admin@admin.com
- 密码: Admin12*
MySQL 访问
- 用户: root
- 密码: root
- 数据库名: magento
在 docker-compose.yml
文件中查看详细信息或运行 make config
命令
如果您想更改用户和密码,请编辑 env 文件。
自定义 Docker 安装
默认版本
- Magento: 2.3.3
- PHP: 7.2
- MySQL: 5.6.23
您可以在 .docker/Dockerfile
中更改版本
MAGENTO_VERSION
如果您在 Docker 安装过程中遇到错误,您必须验证并更新 auth.json 中的 github-oauth,为此,您必须登录您的 GitHub 个人账户并转到设置,然后单击开发人员设置选项并生成个人访问令牌。
质量
在包开发过程中,我尽可能地采用良好的设计和开发实践,以确保这个包尽可能好。我的包开发清单包括
- 完全符合 PSR1、PSR2 和 PSR4。
- 在README.md中包含全面的文档。
- 提供一个最新的CHANGELOG.md,该文档符合在keepachangelog中概述的格式。
- 在整个代码中没有任何phpcs警告,使用
composer test
命令。