-
Require plugin with composer:
composer require sylius/paypal-plugin
-
Add plugin class and other required bundles to your
config/bundles.php
:$bundles = [ Sylius\PayPalPlugin\SyliusPayPalPlugin::class => ['all' => true], ];
-
Import configuration:
imports: - { resource: '@SyliusPayPalPlugin/config/config.yaml' }
-
Import routes:
sylius_refund: resource: "@SyliusPayPalPlugin/config/routes.yaml"
-
Add
FOS\RestBundle
configuration to yourconfig/packages/fos_rest.yaml
filefos_rest: exception: true view: formats: json: true xml: true empty_content: 204 format_listener: rules: - { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true } - { path: '^/', stop: true }
-
Apply migrations to your database:
bin/console doctrine:migrations:migrate
-
Clear cache:
bin/console cache:clear