Download the PHP package paygreen/sylius-paygreen-plugin without Composer
On this page you can find all versions of the php package paygreen/sylius-paygreen-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paygreen/sylius-paygreen-plugin
More information about paygreen/sylius-paygreen-plugin
Files in paygreen/sylius-paygreen-plugin
Package sylius-paygreen-plugin
Short Description Paygreen plugin for Sylius.
License MIT
Informations about the package sylius-paygreen-plugin
Sylius payment module with Paygreen
Installation
Require the plugin :
- Your
ProductVariant
entity needs to implement deMealVoucherAwareInterface
and use theMealVoucherAwareTrait
. - Your
Order
entity needs to implement deMealVoucherableInterface
and use theMealVoucherableTrait
. - You need to run a diff of your doctrine's migrations:
bin/console doctrine:migrations:diff
. Don't forget to run it! (bin/console doctrine:migrations:migrate
) - Copy the template (we update the Product and ProductVariant forms):
Configuration
Connect your Paygreen account with your public key and your private key.
To activate the in site payment interface, the In Site module must be activated via your PayGreen back office. Moreover, you must be in HTTPS.
In the .env
file, you have to configure the PAYGREEN_API_SERVER
(PRODUCTION or SANDBOX) depending on your customer account.
Cookbook
- How to display the amount payable in meal voucher in cart?
- How to display if the product is payable in meal voucher or not?
- How to make delivery payable via meal voucher?
- How to hide the meal ticket payment if it is not available for this cart?
- How to customize "insite" display mode template?
Contribution
Installation:
To be able to setup a plugin's database, remember to configure you database credentials in tests/Application/.env
and tests/Application/.env.test
.
Start local server
Running plugin tests
-
PHPSpec
-
Behat
- All tests (phpspec & behat)
All versions of sylius-paygreen-plugin with dependencies
ext-json Version *
nyholm/psr7 Version ^1.4
paygreen/paygreen-php Version ^1.1
sylius/sylius Version ~1.8 || ~1.9 || ~1.10
symfony/http-client Version ^5.4