Manual Installation

1. Install the Plugin via Composer

composer require sylius/mollie-plugin:^3.1 --no-scripts -W

2. Enable the Bundle

# config/bundles.php

return [
    ...
    Bazinga\Bundle\JsTranslationBundle\BazingaJsTranslationBundle::class => ['all' => true],
    Sylius\MolliePlugin\SyliusMolliePlugin::class => ['all' => true],
];

3. Import Configuration

# config/packages/_sylius.yaml

imports:
    ...
    - { resource: "@SyliusMolliePlugin/config/config.yaml" }

4. Import routes

5. Extend the GatewayConfig entity

Register the GatewayConfig entity

6. Extend the Order entity

Register the Order entity

7. Extend the Product entity

Register the Product entity

8. Extend the ProductVariant entity

Register the ProductVariant entity

9. Extend the AdminUser entity

Register the AdminUser entity

10. Run Doctrine Migrations

Update your database schema:

11. Frontend Assets Installation

Install assets:

Add the plugin's assets to your entrypoint files:

and:

Add JS dependencies:

Build frontend assets:

12. Clear the Symfony Cache

🧩 Optional Features

These steps are optional but recommended depending on your use case.

chevron-rightEnable Refunds with Refund Pluginhashtag

To support order refunds:

Then follow Refund Plugin Installation Guidearrow-up-right.


Refund Plugin Troubleshooting

If you see: Duplicate transition 'complete' in state machine 'sylius_refund_refund_payment'

You likely have legacy state machine config.

Fix: Remove the file:

chevron-rightLoad Fixtureshashtag

To populate the shop with demo data:

chevron-rightSet Up Apple Payhashtag

To support Apple Pay, upload this file to your server:

Usage

During configuration, first save the keys to the database and then click "Load methods".

Last updated

Was this helpful?