Installation
1. Install the Plugin via Composer
composer require sylius/mollie-plugin:^3.1 --no-scripts -W2. Run the Rector Upgrade for Mollie Plugin
Edit your rector.php config:
// rector.php
+ use Sylius\SyliusRector\Set\SyliusMollie;
return static function (RectorConfig $rectorConfig): void {
// ...
+ $rectorConfig->sets([SyliusMollie::MOLLIE_PLUGIN_30]);
};Then run Rector:
vendor/bin/rectorThis step auto-applies required code changes (e.g., routing, services, configuration) for the plugin.
3. Run Doctrine Migrations
Update your database schema:
bin/console doctrine:migrations:migrate4. Frontend Assets Installation
Install assets:
bin/console assets:installAdd JS dependencies:
yarn add bazinga-translator intl-messageformat lodash.get [email protected]Build frontend assets:
yarn encore dev # for development
yarn encore production # for production5. Clear the Symfony Cache
php bin/console cache:clear🧩 Optional Features
These steps are optional but recommended depending on your use case.
Usage
During configuration, first save the keys to the database and then click "Load methods".
Last updated
Was this helpful?
