Lyra Collect para Sylius es un complemento de código abierto que vincula sitios web de comercio electrónico basados en Sylius con la pasarela de pago segura Lyra Collect desarrollada por Lyra Network.
composer require lyranetwork/sylius-lyranetwork-plugin dev-lyra
[sylius-root]/config/
: LyranetworkLyraLyranetworkLyraPlugin::class => ['all' => true],
[sylius-root]/config/
: sylius_lyra :
resource : " @LyranetworkLyraPlugin/Resources/config/routing.yaml "
[sylius-root]/config/packages
: winzou_state_machine :
sylius_payment :
callbacks :
after :
custom_action :
on : ["process", "authorize", "complete"]
do : ["@lyranetworklyra.order_service", "sendConfirmationEmail"]
args : ["object"]
[sylius-root]/config
: services:
[...]
lyranetworklyra.order_service:
class: LyranetworkLyraServiceOrderService
public: true
composer dump-autoload
Cuidadoso
SyliusAdminBundlePaymentMethod_form.html.twig
SyliusAdminBundleOrderShow_payment.html.twig
SyliusShopBundleCheckoutSelectPayment_choice.html.twig
SyliusUiBundleFormtheme.html.twig
cp -R vendor/lyranetwork/sylius-lyranetwork-plugin/LyranetworkLyra/Resources/views/bundles/* templates/bundles/
php bin/console cache:clear
El complemento debería estar ahora disponible en la lista de métodos de pago que puede crear.
[sylius-root]/composer.json
, en autoload psr-4 la siguiente línea: "Lyranetwork\Lyra\": "LyranetworkLyra/src/"
[sylius-root]/config/
: LyranetworkLyraLyranetworkLyraPlugin::class => ['all' => true],
[sylius-root]/config/
: sylius_lyra :
resource : " @LyranetworkLyraPlugin/Resources/config/routing.yaml "
[sylius-root]/config/packages
: winzou_state_machine :
sylius_payment :
callbacks :
after :
custom_action :
on : ["process", "authorize", "complete"]
do : ["@lyranetworklyra.order_service", "sendConfirmationEmail"]
args : ["object"]
[sylius-root]/config
: services:
[...]
lyranetworklyra.order_service:
class: LyranetworkLyraServiceOrderService
public: true
composer dump-autoload
Cuidadoso
SyliusAdminBundlePaymentMethod_form.html.twig
SyliusAdminBundleOrderShow_payment.html.twig
SyliusShopBundleCheckoutSelectPayment_choice.html.twig
SyliusUiBundleFormtheme.html.twig
cp -R LyranetworkLyra/Resources/views/bundles/* templates/bundles/
php bin/console translation:extract en LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract fr LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract es LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract de LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract pt LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract br LyranetworkLyraPlugin --dump-messages
php bin/console cache:clear
El complemento debería estar ahora disponible en la lista de métodos de pago que puede crear.
En la interfaz de administración de Sylius:
Configuration > Payment methods
.Create
en la parte superior derecha de la página para mostrar la lista de métodos de pago disponibles.Payment by Lyra Collect
para agregarlo y configurarlo.Create
. composer remove lyranetwork/sylius-lyranetwork-plugin
sylius/composer.json
, en autoload psr-4 la línea: "Lyranetwork\Lyra\": "LyranetworkLyra/src/"
[sylius-root]/config/
: LyranetworkLyraLyranetworkLyraPlugin::class => ['all' => true],
[sylius-root]/config/
sylius_lyra :
resource : " @LyranetworkLyraPlugin/Resources/config/routing.yaml "
[sylius-root]/config/packages
: winzou_state_machine :
sylius_payment :
callbacks :
after :
custom_action :
on : ["process", "authorize", "complete"]
do : ["@lyranetworklyra.order_service", "sendConfirmationEmail"]
args : ["object"]
[sylius-root]/config
: services:
[...]
lyranetworklyra.order_service:
class: LyranetworkLyraServiceOrderService
public: true
templates/bundles/
SyliusAdminBundlePaymentMethod_form.html.twig
SyliusAdminBundleOrderShow_payment.html.twig
SyliusShopBundleCheckoutSelectPayment_choice.html.twig
SyliusUiBundleFormtheme.html.twig
composer dump-autoload
php bin/console cache:clear
Cada archivo fuente del módulo de pago Lyra Collect incluido en esta distribución tiene la licencia MIT License (MIT).
Consulte LICENSE.txt para obtener el texto completo de la licencia MIT. También está disponible a través de Internet en esta URL: https://opensource.org/licenses/mit-license.html.