承接 truelayer/magento2 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

truelayer/magento2

Composer 安装命令:

composer require truelayer/magento2

包简介

TrueLayer extension for Magento 2

README 文档

README

The TrueLayer plugin makes it effortless to connect your Magento® 2 catalog with the TrueLayer Payment Services.

Installation

Before you start the installation process, we recommend that you make a backup of your store, as well as the database.

You can use Composer to install this package. First, check if your server has Composer installed by running the following command:

composer –v

If your server doesn't have composer installed, you can easily install by following the instructions here: https://getcomposer.org/doc/00-intro.md

You can then install this Magento® 2 extension through Composer:

  1. Connect to your server running Magento® 2 using SSH or other method (make sure you have access to the command line).
  2. Locate your Magento® 2 project root.
  3. Install the extension through composer:
composer require truelayer/magento2
  1. Once completed run the following commands:
bin/magento module:enable TrueLayer_Connect
bin/magento setup:upgrade
bin/magento cache:flush
  1. If Magento® is running in production mode you also need to redeploy the static content:
bin/magento setup:static-content:deploy
  1. After the installation, go to your Magento® admin portal and open ‘Stores’ > ‘Configuration’ > ‘Sales’ > ‘TrueLayer’.
  2. It's recommended that you also enable the cache for TrueLayer. There's two ways you can do this.
    1. In your Magento® admin portal open ‘System‘ > ‘Cache Management‘, click the checkbox for TrueLayer, select ‘Enable‘ from ‘Actions‘, and click ‘Submit‘.
    2. On your server running Magento® 2 run the following command from the command line: bin/magento cache:enable truelayer

Local development

A basic docker-compose configuration is provided to make local development easier. To start it, run the following:

DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose up

You can login as an admin user at http://localhost:1234/admin using the following credentials:

Username Password
exampleuser examplepassword123

Testing webhooks

Webhook signature includes the path so make sure the webhook URL is configured in your Console and the path is set to rest/V1/webhook/transfer. The domain does not matter, as we will be using truelayer-cli to forward webhooks.

Run the following to forward webhooks to your local instance:

docker run --network="host" truelayer/truelayer-cli route-webhooks --to-addr http://localhost:1234/rest/V1/webhook/transfer --client-secret <client_secret> --client-id <client_id>

统计信息

  • 总下载量: 13.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2023-04-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固