plugin sylius
v1.1.2
Lyra Collect untuk Sylius adalah plugin sumber terbuka yang menghubungkan situs web e-niaga berdasarkan Sylius ke gerbang pembayaran aman Lyra Collect yang dikembangkan oleh 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
Hati-hati
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
Plugin sekarang seharusnya tersedia di daftar metode pembayaran yang dapat Anda buat.
[sylius-root]/composer.json
, di autoload psr-4 baris berikut: "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
Hati-hati
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
Plugin sekarang seharusnya tersedia di daftar metode pembayaran yang dapat Anda buat.
Di antarmuka administrasi Sylius:
Configuration > Payment methods
.Create
di kanan atas halaman untuk menampilkan daftar metode pembayaran yang tersedia.Payment by Lyra Collect
untuk menambahkan dan mengkonfigurasinya.Create
. composer remove lyranetwork/sylius-lyranetwork-plugin
sylius/composer.json
, di autoload psr-4 baris: "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
Setiap file sumber modul pembayaran Lyra Collect yang disertakan dalam distribusi ini dilisensikan di bawah Lisensi MIT (MIT).
Silakan lihat LICENSE.txt untuk teks lengkap lisensi MIT. Ini juga tersedia melalui world-wide-web di URL ini: https://opensource.org/licenses/mit-license.html.