This installation instruction assumes that you're using Symfony Flex. If you don't, take a look at the legacy installation instruction. However, we strongly encourage you to use Symfony Flex.
-
Require plugin with composer:
composer require sylius/paypal-plugin
Remember to allow community recipes with
composer config extra.symfony.allow-contrib true
or during plugin installation process -
Apply migrations:
bin/console doctrine:migrations:migrate -n
-
Override Sylius' templates
cp -R vendor/sylius/paypal-plugin/src/Resources/views/bundles/* templates/bundles/
-
Clear cache:
bin/console cache:clear
To make PayPal integration working, your local Sylius URL should be accessible for the PayPal servers. Therefore, you can
add the proper directive to your /etc/hosts
(something like 127.0.0.1 sylius.local
) or use a service as ngrok.
Next: PayPal environment