Installation
1. Install Mollie Plugin via Composer
composer require sylius/mollie-plugin:^3.1 --no-scripts -W
2. 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/rector
This 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:migrate
4. Frontend Asset Installation
Install assets:
bin/console assets:install
Add JS dependencies:
yarn add bazinga-translator intl-messageformat lodash.get [email protected]
Build frontend assets:
yarn encore dev # for development
yarn encore production # for production
5. 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?