First installation
If you are installing the payment module for the first time:
- Open the bundles.php file in your site's config directory.
- Add the line below:
Lyranetwork\Lyra\LyranetworkLyraPlugin::class => ['all' => true],
This line must be added before the last line:];
- Open the routes.yaml file in your site's config directory.
- Add the 2 lines below to the end of the file:
sylius_lyra: resource: "@LyranetworkLyraPlugin/Resources/config/routing.yaml"
IMPORTANT: sylius and resource must be aligned. - Open the _sylius.yaml file in the directory config/packages of your site.
- Add the code below:
winzou_state_machine: sylius_payment: callbacks: after: custom_action: on: ["process", "authorize", "complete"] do: ["@lyranetworklyra.order_service", "sendConfirmationEmail"] args: ["object"]
- Open the services.yaml file in your site's config directory.
- Add the code below:
services: [...] lyranetworklyra.order_service: class: Lyranetwork\Lyra\Service\OrderService public: true
- Open the terminal from the root of your website.
- Enter the following command and then press Enter:
composer dump-autoload