truelayer / magento2
Magento 2 的 TrueLayer 扩展
Requires
- php: >=7.4.0
- magento/framework: >=103.0.0
- magento/module-checkout: >=100.1.0
- magento/module-payment: >=100.1.0
- magento/module-sales: >=100.1.0
- truelayer/client: >=1.2.0
Requires (Dev)
- dev-main
- 2.1.0
- 2.0.0
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.6
- 1.0.5
- 1.0.4
- dev-release/v2.3.0
- dev-feature/PLUG-130
- dev-feature/PLUG-127
- dev-feature/PLUG-151
- dev-feature/PLUG-152
- dev-feature/PLUG-10
- dev-release/v2.2.0
- dev-feature/PLUG-129
- dev-feature/PLUG-136
- dev-feature/PLUG-131
- dev-plug-131
- dev-release/v2.1.0
- dev-feature/PLUG-99
- dev-feature/checkout-widget-2
- dev-feature/PLUG-115
- dev-feature/PLUG-110
- dev-feature/PLUG-132-checkout-redirect
- dev-feature/show-description
- dev-PLUG-132-checkout-redirect-observer
- dev-feature/PLUG-108-logtail
- dev-feature/PLUG-105-set-store
- dev-feature/PLUG-106
- dev-custom-shipping-issue
- dev-feature/update-deps
- dev-feature/matrix-update
This package is auto-updated.
Last update: 2024-09-24 11:45:58 UTC
README
TrueLayer 插件让您轻松连接您的 Magento® 2 目录与 TrueLayer 支付服务。
安装
为了使集成过程尽可能简单,我们为您开发了各种插件。本指南用于安装 Magento® 2 插件。在开始安装过程之前,我们建议您备份您的网店文件以及数据库。
安装 Magento® 2 扩展有两种不同的方法。
- 使用 Composer 安装
- 使用 Magento® 市场安装(即将推出!)
使用 Composer 安装
Magento® 2 使用 Composer 来管理模块包和库。Composer 是一个 PHP 的依赖管理器。Composer 声明了项目依赖的库,并将为您安装/更新它们。
通过运行以下命令检查您的服务器是否已安装 composer
composer –v
如果您的服务器没有安装 composer,您可以通过以下手册轻松安装它:https://getcomposer.org.cn/doc/00-intro.md
通过 Composer 安装 Magento® 2 扩展的步骤指南
- 使用 SSH 或其他方法连接到运行 Magento® 2 的服务器(确保您有访问命令行的权限)。
- 定位您的 Magento® 2 项目根目录。
- 通过 composer 安装 Magento® 2 扩展,并等待完成
composer require truelayer/magento2
- 完成后,运行 Magento® 模块启用命令
bin/magento module:enable TrueLayer_Connect
- 之后,运行 Magento® 升级并清理缓存
php bin/magento setup:upgrade
php bin/magento cache:flush
- 如果 Magento® 在生产模式下运行,您还需要重新部署静态内容
php bin/magento setup:static-content:deploy
- 安装完成后:前往您的 Magento® 管理门户,然后打开“商店” > “配置” > “支付方式” > “TrueLayer”。
由 Magmodules 开发
我们是一家专注于为 Magento 和 Shopware 开发扩展的荷兰代理机构。我们所有的扩展都是由自己的团队编写的,我们的支持团队随时准备为您提供帮助。
为 TrueLayer 开发
TrueLayer 插件解决了这个问题,使拥有 Magento 2 网上商店的企业能够以最小的技术和开发资源,无缝地将即时银行支付集成到其网站中。 访问 Truelayer.com
本地开发
提供基本的 docker-compose 配置,以便更容易地进行本地开发。要启动它,请运行以下命令
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose up
您可以使用以下凭据以管理员用户身份登录到 https://:1234/admin
测试 webhooks
Webhook 签名包括路径,请确保您的控制台已配置 webhook URL,并且路径设置为 rest/V1/webhook/transfer。域名无关紧要,因为我们将会使用 truelayer-cli
来转发 webhooks。
运行以下命令将 webhooks 转发到您的本地实例
docker run --network="host" truelayer/truelayer-cli route-webhooks --to-addr https://:1234/rest/V1/webhook/transfer --client-secret <client_secret> --client-id <client_id>