Sylius payment module with Paygreen
composer require paygreen/sylius-paygreen-plugin
The module configuration is located in the Payment method section of the admin panel.
Connect your Paygreen account to the module with your public key and your private key.
You will have to select Bank card or Dematerialized Restaurant Tickets according to your needs.
In the .env file, you have to configure the PAYGREEN_URL_API (production or sandbox) depending of your customer account.
$ composer install
$ (cd tests/Application && yarn install)
$ (cd tests/Application && yarn build)
$ (cd tests/Application && APP_ENV=test bin/console assets:install public)
$ (cd tests/Application && APP_ENV=test bin/console doctrine:database:create)
$ (cd tests/Application && APP_ENV=test bin/console doctrine:schema:create)
To be able to setup a plugin's database, remember to configure you database credentials in tests/Application/.env
and tests/Application/.env.test
.
-
PHPSpec
$ composer phpspec
-
Behat
$ composer behat
-
All tests (phpspec & behat)
$ composer test