Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.06 KB

installation.md

File metadata and controls

40 lines (26 loc) · 1.06 KB

Installation

BEWARE!

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.

  1. 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

  2. Apply migrations:

    bin/console doctrine:migrations:migrate -n
    
  3. Override Sylius' templates

    cp -R vendor/sylius/paypal-plugin/src/Resources/views/bundles/* templates/bundles/
  4. 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