Installation

This installation instruction assumes that you're using Symfony Flex and Rector. If you don't, take a look at the manual installation, but we strongly recommend using Flex and Rector for speed and simplicity.

1. Install the Plugin via Composer

composer require sylius/paypal-plugin

Remember to allow community recipes with composer config extra.symfony.allow-contrib true or during plugin installation process

2. Run Doctrine Migrations

Update your database schema:

bin/console doctrine:migrations:migrate

3. Clear the Symfony Cache

php bin/console cache:clear

Usage

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 steps

Your plugin is now installed and ready for configuration.

To start accepting payments, you need to connect your PayPal Business account. Follow the step-by-step guide in the Onboarding page.

Last updated

Was this helpful?