Download the PHP package webgriffe/sylius-pagolight-plugin without Composer
On this page you can find all versions of the php package webgriffe/sylius-pagolight-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webgriffe/sylius-pagolight-plugin
More information about webgriffe/sylius-pagolight-plugin
Files in webgriffe/sylius-pagolight-plugin
Package sylius-pagolight-plugin
Short Description Sylius plugin for HeyLight payment gateway (ex PagoLight BNPL and PagoLight PRO)
License proprietary
Informations about the package sylius-pagolight-plugin
Sylius HeyLight Plugin
Sylius plugin for HeyLight payment gateway (ex PagoLight BNPL and PagoLight PRO).
Installation
-
Run:
-
Add
Webgriffe\SyliusHeylightPlugin\WebgriffeSyliusHeylightPlugin::class => ['all' => true]
to yourconfig/bundles.php
.Normally, the plugin is automatically added to the
config/bundles.php
file by thecomposer require
command. If it is not, you have to add it manually. -
Create a new file config/packages/webgriffe_sylius_heylight_plugin.yaml:
-
Import the routes needed for cancelling the payments. Add the following to your config/routes.yaml file:
NB: The file shop_routing needs to be after the prefix _locale, so that messages can be displayed in the right language. You should also include the cancel routes from the Payum bundle if you do not have it already!
-
Add the WebhookToken entity. Create a new file
src/Entity/Payment/WebhookToken.php
with the following content: -
Run:
-
Run:
Or, you can add the entry to your webpack.config.js file:
And then override the template
WebgriffeSyliusHeylightPlugin/after_pay.html.twig
to include the entry:
Usage
Access to the admin panel and go to the Payment methods
section. Create a new payment method and select HeyLight BNPL
or HeyLight Financing
as the gateway. Then, configure the payment method with the required parameters.
Automatically, the plugin will hide the payment method if the currency is not EUR, GBP or CH or if the country is not Italy or Switzerland. HeyLight Financing will also be visible only if the order total amount is greater than 100 EUR.
Contributing
For a comprehensive guide on Sylius Plugins development please go to Sylius documentation, there you will find the Plugin Development Guide, that is full of examples.
All versions of sylius-pagolight-plugin with dependencies
guzzlehttp/psr7 Version ^1.8 || ^2.5
php-http/discovery Version ^1.19
psr/http-factory Version ^1.0
sylius/sylius Version ^1.12
symfony/webpack-encore-bundle Version ^1.17