truelayer / magento2
TrueLayer extension for Magento 2
Installs: 7 213
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 5
Open Issues: 2
Type:magento2-module
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.3.0
- 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-feature/PLUG-144
- dev-feature/PLUG-136
- dev-feature/e2e-tests-update
- dev-develop
- dev-feature/PLUG-10_2
- dev-feature/PLUG-127
- dev-feature/PLUG-151
- dev-feature/PLUG-152
- dev-release/v2.2.0
- 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-12-06 16:16:26 UTC
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:
- Connect to your server running Magento® 2 using SSH or other method (make sure you have access to the command line).
- Locate your Magento® 2 project root.
- Install the extension through composer:
composer require truelayer/magento2
- Once completed run the following commands:
bin/magento module:enable TrueLayer_Connect
bin/magento setup:upgrade
bin/magento cache:flush
- If Magento® is running in production mode you also need to redeploy the static content:
bin/magento setup:static-content:deploy
- After the installation, go to your Magento® admin portal and open ‘Stores’ > ‘Configuration’ > ‘Sales’ > ‘TrueLayer’.
- It's recommended that you also enable the cache for TrueLayer. There's two ways you can do this.
- In your Magento® admin portal open ‘System‘ > ‘Cache Management‘, click the checkbox for TrueLayer, select ‘Enable‘ from ‘Actions‘, and click ‘Submit‘.
- 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:
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>