bitbag / mollie-plugin
Mollie payment plugin for Sylius applications.
Installs: 98 975
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 5
Forks: 16
Open Issues: 9
Type:sylius-plugin
Requires
- php: ^7.4 || ^8.0
- ext-json: *
- mollie/mollie-api-php: ^v2.73.0
- sylius/admin-order-creation-plugin: ^0.12 || ^0.13 || v0.14 || v0.15.0
- sylius/refund-plugin: ^1.0
- sylius/sylius: ~1.9.0 || ~1.10.0 || ~1.11.0 || ~1.12.0 || ~1.13.0
- symfony/messenger: ^4.4 || ^5.2 || ^6.0
- willdurand/js-translation-bundle: ^4.0 || ^5.0
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-debug-extension: ^2.0.0
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- friendsofsymfony/oauth-server-bundle: ^1.6 || >2.0.0-alpha.0 ^2.0@dev
- lchrusciel/api-test-case: ^5.2
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.85
- phpstan/phpstan-doctrine: 0.12.33
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.12
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^4.0
- symfony/browser-kit: ^4.4 || ^5.2
- symfony/debug-bundle: ^4.4 || ^5.2
- symfony/dotenv: ^4.4 || ^5.2
- symfony/intl: ^4.4 || ^5.2
- symfony/web-profiler-bundle: ^4.4 || ^5.2
- symfony/webpack-encore-bundle: ^1.12
- vimeo/psalm: 4.7.1
Conflicts
- symplify/package-builder: 8.3.25
- dev-master
- v5.7.3
- v5.7.2
- v5.7.1
- v5.7.0
- v5.6.0
- v5.5.0
- v5.4.0
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.0
- v4.0.1
- v4.0.0
- v4.0.0-beta.2
- v4.0.0-beta.1
- 3.6.0
- v3.5.0
- v3.4.0
- v3.4.0-beta.2
- v3.4.0-beta.1
- v3.3.10
- v3.3.9
- v3.3.8
- v3.3.7
- v3.3.6
- v3.3.5
- v3.3.4
- v3.3.3
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.1
- v1.0.0
- dev-dependabot/npm_and_yarn/tests/Application/nanoid-3.3.4
- dev-dependabot/npm_and_yarn/nanoid-3.3.4
- dev-feature/recurring-orders
- dev-feature/recurring-orders-sylius-1.10
- dev-dependabot/npm_and_yarn/tests/Application/async-2.6.4
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/tests/Application/moment-2.29.2
- dev-dependabot/npm_and_yarn/tests/Application/minimist-1.2.6
- dev-dependabot/npm_and_yarn/minimist-1.2.6
- dev-release/v3.6.0
- dev-feature/recurring-orders-testing
- dev-dependabot/npm_and_yarn/tests/Application/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/tests/Application/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-bugfix/MOL-170
- dev-hotfix/api-key-test-button
This package is auto-updated.
Last update: 2024-11-21 09:14:09 UTC
README
Mollie Payments Plugin for Sylius
Table of Content
- Overview
- Support
- Installation
- Recurring payments
- Community
- Additional Sylius resources for developers
- License
- Contact
Overview
Mollie is the most popular and advanced payment gateway integration with Sylius. This plugin is officially certified by Mollie. The integration currently supports the following payment methods:
- Credit Cards (Master Card, VISA, American Express)
- PayPal
- ApplePay
- Klarna
- iDEAL
- SEPA
- SOFORT
- EPS
- Giropay
- KBC/CBC Payment Button
- Przelewy24
- ING Home'Pay
- Belfius Pay Button
- Gift cards
- Apple Pay Direct
Few words from Mollie: Our mission is to create a greater playing field for everyone. By offering convenient, safe world-wide payment solutions we remove barriers so you could focus on growing your business. Being authentic is our baseline.
Mollie is one of Europe's fastest-growing fin-tech companies. We provide a simple payment API, that enables webshop and app builders to implement more than twenty different payment methods in one go. Our packages and plugins are completely open-source, freely available, and easy to integrate into your current project.
Mollie thrives on innovation. When we started we spearheaded the payments industry by introducing effortless payment products that were easier, cheaper, and more flexible than what the rigid, cumbersome banks could do. Now, more than a decade later, trusted by 70.000+ businesses, Mollie is still building innovative products and working hard to make payments better.
We are here to help
This open-source plugin was developed to help the Sylius community and make Mollie payments platform available to any Sylius store. If you have any additional questions, would like help with installing or configuring the plugin or need any assistance with your Sylius project - let us know by sending an email to support@mollie.com
Installation
Requirements
We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.
For the full installation guide please go to installation
Usage
During configuration first, save the keys to the database and then click "Load methods"
Rendering Mollie credit card form
You can use SyliusMolliePlugin:DirectDebit:_form.html.twig
and @SyliusMolliePlugin/Grid/Action/cancelSubscriptionMollie.html.twig
templates for adding the form to supplementing the direct debit card data from and cancel the subscription form the Twig UI.
For an example on how to do that, take a look at these source files.
Customization
You can decorate available services and extend current forms.
Run the below command to see what Symfony services are shared with this plugin:
$ bin/console debug:container sylius_mollie_plugin
Plugin Development
Instalation
$ composer install
$ cd tests/Application
$ yarn install
$ yarn encore dev
$ bin/console assets:install -e test
$ bin/console doctrine:database:create -e test
$ bin/console doctrine:schema:create -e test
$ symfony server:start
$ open http://localhost:8080 // or the port showed in your terminal while runing command with symfony server:start
- Also in tests/Application/config/packages/webpack_encore.yaml, make sure there is such configuration:
webpack_encore:
output_path: '%kernel.project_dir%/public/build/default'
builds:
mollie-admin: '%kernel.project_dir%/public/build/mollie-admin'
mollie-shop: '%kernel.project_dir%/public/build/mollie-shop'
- Also make sure you have such configuration in your shop and admin views directory:
in: src/Resources/views/Shop/_javascripts.html.twig:
<script src="https://js.mollie.com/v1/mollie.js"></script>
{{ encore_entry_script_tags('shop-entry', null, 'mollie-shop') }}
{{ encore_entry_script_tags('plugin-shop-entry', null, 'mollie-shop') }}
in: src/Resources/views/Shop/_stylesheets.html.twig:
{{ encore_entry_link_tags('shop-entry', null, 'mollie-shop') }}
{{ encore_entry_link_tags('plugin-shop-entry', null, 'mollie-shop') }}
in: src/Resources/views/Admin/_javascripts.html.twig:
{{ encore_entry_script_tags('admin-entry', null, 'mollie-admin') }}
{{ encore_entry_script_tags('plugin-admin-entry', null, 'mollie-admin') }}
in: src/Resources/views/Admin/_stylesheets.html.twig:
{{ encore_entry_link_tags('admin-entry', null, 'mollie-admin') }}
{{ encore_entry_link_tags('plugin-admin-entry', null, 'mollie-admin') }}
Frontend
Starting server and building assets
- Go to
./tests/Application/
directory - Run
symfony server:start
in terminal. It will start local server. - Run
yarn watch
in terminal. It will watch your changes in admin and shop catalogs:../../src/Resources/assets/admin/..
,../../src/Resources/assets/shop/..
- Run
yarn dev
in terminal to build your assets once in development mode. - Run
yarn encore production
in terminal, to build your assets once in production mode - its required before creating every Pull Request. - All assets (mollie assets + sylius base assets) will be build in:
tests/application/public/build/mollie-admin/..
tests/application/public/build/mollie-shop/..
Rebuilding assets in your root/SRC directory
bin/console assets:install
CSS & JS files directory you can edit and work with:
- Admin: go to
./src/Resources/assets/admin/**/
- Shop: go to
./src/Resources/assets/shop/**/
Testing
$ bin/behat
$ bin/phpspec run
Community
For online communication, we invite you to chat with us & other users on Sylius Slack.
Additional resources for developers
To learn more about our contribution workflow and more, we encourage you to use the following resources:
License
This plugin's source code is completely free and released under the terms of the MIT license.
Contact
If you want to contact us, the best way is to fill the form on our website or send us an e-mail to support@mollie.com with your question(s). We guarantee that we answer as soon as we can!