Download the PHP package payplug/payplug-sylius without Composer
On this page you can find all versions of the php package payplug/payplug-sylius. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download payplug/payplug-sylius
More information about payplug/payplug-sylius
Files in payplug/payplug-sylius
Package payplug-sylius
Short Description PayPlug payment plugin for Sylius applications.
License MIT
Informations about the package payplug-sylius
Payplug payment plugin for Sylius
This plugin allows you to integrate Payplug payment with Sylius platform app including payment features and refunding orders.
Requirements
In the channel settings, the base currency must be set to EUR because the payment gateway only works in this currency.
In local environment, the plugin will not work properly because you will not be notified of the status of payments from the payment gateway.
⚠️ Refunds requirements
You need to make some adjustments in order to make our plugin worked normally due to a dependency to refund-plugin. Please follow those requirements:
To generate "Credit memos" when refunding, your server need to have the WKHTMLTOPDF binary as explain in refund-pluging documentation # Pre-requirements
Compatibility
Version | |
---|---|
PHP | 7.4, 8.0, 8.1 |
Sylius | 1.9, 1.10, 1.11, 1.12 |
Installation
-
Require the payplug/sylius-payplug-plugin :
-
Apply migrations to your database:
-
Copy templates that are overridden by Sylius into
templates/bundles/SyliusAdminBundle
-
Add Payplug to refundable payment method for Sylius Refund Plugin in
config/services.yaml
-
Add Payplug routes in
config/routes.yaml
- Add Traits for Customer and PaymentMethod entities
-
App\Entity\Customer\Customer
-
App\Entity\Payment\PaymentMethod
- App\Entity\Payment\Payment
-
Process translations
- Clear cache:
🎉 You are now ready to add Payplug Payment method.
In your back-office, go to Configuration > Payment methods
, then click on Create
and choose "Payplug".
Logs
If you want to follow the logs in the production environment, you need to add the configuration in config/packages/prod/monolog.yaml
, logs should be in var/log/prod.log
which can be searched after the phrase [Payum]
or [Payplug]
:
Customization
Available services you can decorate and forms you can extend
Run the below command to see what Symfony services are shared with this plugin:
Template overriding
This plugin override some sylius templates. If you plan override them also, you should retrieve them in your application.
Copy Sylius templates overridden in plugin to your templates directory (e.g templates/bundles/)
You also need to edit your twig config to add your path to avoid our configuration to be prepended :
Development
See How to contribute.
License
This library is under the MIT license.
Oney Integration
For better Oney integration, you can check the Oney enhancement documentation.
Doc
- Development
- Release Process
All versions of payplug-sylius with dependencies
ext-json Version *
giggsey/libphonenumber-for-php Version ^8.12
payplug/payplug-php Version ^3.1
php-http/message-factory Version ^1.1
sylius/refund-plugin Version ^1.4
sylius/sylius Version ^1.11.0
symfony/asset Version ^4.4|^5.0|^6.0
symfony/lock Version ^4.4|^5.0|^6.0
symfony/validator Version ^4.4|^5.0|^6.0