Download the PHP package lyranetwork/sylius-lyranetwork-plugin without Composer
On this page you can find all versions of the php package lyranetwork/sylius-lyranetwork-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lyranetwork/sylius-lyranetwork-plugin
More information about lyranetwork/sylius-lyranetwork-plugin
Files in lyranetwork/sylius-lyranetwork-plugin
Package sylius-lyranetwork-plugin
Short Description This plugin enables you to setup the Lyra Collect payment gateway on your Sylius website.
License MIT
Informations about the package sylius-lyranetwork-plugin
Lyra Collect for Sylius
Lyra Collect for Sylius is an open source plugin that links e-commerce websites based on Sylius to Lyra Collect secure payment gateway developed by Lyra Network.
Installation & Upgrade
With Composer
-
Require the plugin with composer using the following command:
-
Add the following line in bundles.php file located in
[sylius-root]/config/
: -
Add Lyra routes in routes.yaml file located in
[sylius-root]/config/
: -
Add Lyra callbacks in _sylius.yaml file located in
[sylius-root]/config/packages
: -
Add Lyra services in services.yaml file located in
[sylius-root]/config
: - Dump the autoload cache using the following command:
Careful
-
Add the overrode templates. If you have already overrode one of the following files, you need to merge it with ours. You will find them in LyranetworkLyra/Resources/views/bundles/ directory.
-
If not, just copy them with the following command :
- Empty the cache with the following command:
The plugin should be now available in the list of payment methods that you can create.
With plugin zip file
- Unzip module in your Sylius root folder.
-
Add in file
[sylius-root]/composer.json
, in autoload psr-4 the following line: -
Add the following line in bundles.php file located in
[sylius-root]/config/
: -
Add Lyra routes in routes.yaml file located in
[sylius-root]/config/
: -
Add Lyra callbacks in _sylius.yaml file located in
[sylius-root]/config/packages
: -
Add Lyra services in services.yaml file located in
[sylius-root]/config
: - Dump the autoload cache using the following command:
Careful
-
Add the overrode templates. If you have already overrode one of the following files, you need to merge it with ours. You will find them in LyranetworkLyra/Resources/views/bundles/ directory.
-
If not, just copy them with the following command :
-
Open command line in Sylius root directory, and run the following commands to extract the translations for the plugin:
- Empty the cache with the following command:
The plugin should be now available in the list of payment methods that you can create.
Configuration
In the Sylius administration interface:
- Go to
Configuration > Payment methods
. - Click on
Create
button on the top right of the page to display the list of available payment methods. - Choose
Payment by Lyra Collect
to add and configure it. - You can now enter your Lyra Collect credentials and configure your payment method.
- Don't forget to give your payment method a code, to set the name in the language sections at the bottom and to save by clicking the
Create
button.
Uninstallation
With composer
With module zip file
- Delete LyranetworkLyra folder in your Sylius root folder
- Remove in file
sylius/composer.json
, in autoload psr-4 the line:
Remove and revert changes
-
Remove the following line in bundles.php file located in
[sylius-root]/config/
: -
Remove Lyra routes in routes.yaml file located in
[sylius-root]/config/
-
Remove Lyra callbacks in _sylius.yaml file located in
[sylius-root]/config/packages
: -
Remove Lyra services in services.yaml file located in
[sylius-root]/config
: -
Remove or unmerge all added template files in
templates/bundles/
- Open command line in Sylius root directory, and run the following commands:
License
Each Lyra Collect payment module source file included in this distribution is licensed under the The MIT License (MIT).
Please see LICENSE.txt for the full text of the MIT license. It is also available through the world-wide-web at this URL: https://opensource.org/licenses/mit-license.html.
All versions of sylius-lyranetwork-plugin with dependencies
sylius/sylius Version ^1.12
sylius/mailer-bundle Version ^1.8 || ^2.0@beta
symfony/webpack-encore-bundle Version ^1.15