Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Sylius Mollie payment gateway integration.

License

Notifications You must be signed in to change notification settings

Harborn-digital/SyliusMolliePlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mollie Payments Plugin for Sylius


Slack Support

At BitBag we do believe in open source. However, we are able to do it just because of our awesome clients, who are kind enough to share some parts of our work with the community. Therefore, if you feel like there is a possibility for us working together, feel free to reach us out. You will find out more about our professional services, technologies and contact details at https://bitbag.io/.

Table of Content


Overview


Screenshot showing payment methods show in shop

Screenshot showing payment methods show in admin

Screenshot showing payment method config in admin

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:

  1. Credit Cards (Master Card, VISA, American Express)
  2. PayPal
  3. ApplePay
  4. Klarna
  5. iDEAL
  6. SEPA
  7. SOFORT
  8. EPS
  9. Giropay
  10. KBC/CBC Payment Button
  11. Przelewy24
  12. ING Home'Pay
  13. Belfius Pay Button
  14. Gift cards
  15. 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!

Installation


Requirements

We work on stable, supported and up-to-date versions of packages. We recommend you to do the same.

Package Version
PHP ^7.2
ext-json: *
mollie/mollie-api-php ^2.0
sylius/admin-order-creation-plugin ^0.9.0
sylius/refund-plugin ^1.0.0-RC.3
sylius/sylius ^1.7.0

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 BitBagSyliusMolliePlugin:DirectDebit:_form.html.twig and @BitBagSyliusMolliePlugin/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 bitbag_sylius_mollie_plugin

Recurring subscription


State Machine

For a better integration with Mollie's recurring subscription, you can use state machine callback.

Available states:

  • Processing: Subscription created but not active yet (startdate higher than "now")
  • Active: Subscription is in progress. Not all payments are done, but we wait until the next payment date
  • Cancelled: The merchant cancelled the subscription
  • Suspended: Mandates became invalid, so the subscription is suspended
  • Completed: All subscription payments are executed according to the timetable

Frontend part


Starting and building assets

  • Go to ./tests/Application/ directory
  • Run gulp watch in terminal. It will watch your changes in: ../../src/Resources/public/js/Admin/**/*.js, ../../src/Resources/public/css/**/*.css

Rebuilding assets

  • bin/console assets:install or
  • gulp buildJsAssets and
  • gulp buildCssAssets

more details in ./tests/Application/gulpfile.babel.js

CSS & JS files directory

  • CSS: go to ./src/Resources/public/css/**/
  • JS: go to ./src/Resources/public/js/**/

Testing


$ composer install
$ cd tests/Application
$ yarn install
$ yarn run gulp
$ bin/console assets:install -e test
$ bin/console doctrine:database:create -e test
$ bin/console doctrine:schema:create -e test
$ bin/console server:run 127.0.0.1:8080 -e test
$ open http://localhost:8080
$ bin/behat
$ bin/phpspec run

About us


BitBag is an agency that provides high-quality eCommerce and Digital Experience software. Our main area of expertise includes eCommerce consulting and development for B2C, B2B, and Multi-vendor Marketplaces. The scope of our services related to Sylius includes:

  • Consulting in the field of strategy development
  • Personalized headless software development
  • System maintenance and long-term support
  • Outsourcing
  • Plugin development
  • Data migration

Some numbers regarding Sylius:

  • 20+ experts including consultants, UI/UX designers, Sylius trained front-end and back-end developers,
  • 100+ projects delivered on top of Sylius,
  • Clients from 20+ countries
  • 3+ years in the Sylius ecosystem.

If you need some help with Sylius development, don't be hesitate to contact us directly. You can fill the form on this site or send us an e-mail to [email protected]!


Community


For online communication, we invite you to chat with us & other users on Sylius Slack.

Demo Sylius shop


We created a demo app with some useful use-cases of plugins! Visit b2b.bitbag.shop to take a look at it. The admin can be accessed under b2b.bitbag.shop/admin/login link and sylius: sylius credentials. Plugins that we have used in the demo:

BitBag's Plugin GitHub Sylius' Store
ACL PLugin Private. Available after the purchasing. https://plugins.sylius.com/plugin/access-control-layer-plugin/
Braintree Plugin https://github.com/BitBagCommerce/SyliusBraintreePlugin https://plugins.sylius.com/plugin/braintree-plugin/
CMS Plugin https://github.com/BitBagCommerce/SyliusCmsPlugin https://plugins.sylius.com/plugin/cmsplugin/
Elasticsearch Plugin https://github.com/BitBagCommerce/SyliusElasticsearchPlugin https://plugins.sylius.com/plugin/2004/
Mailchimp Plugin https://github.com/BitBagCommerce/SyliusMailChimpPlugin https://plugins.sylius.com/plugin/mailchimp/
Multisafepay Plugin https://github.com/BitBagCommerce/SyliusMultiSafepayPlugin
Wishlist Plugin https://github.com/BitBagCommerce/SyliusWishlistPlugin https://plugins.sylius.com/plugin/wishlist-plugin/
Sylius' Plugin GitHub Sylius' Store
Admin Order Creation Plugin https://github.com/Sylius/AdminOrderCreationPlugin https://plugins.sylius.com/plugin/admin-order-creation-plugin/
Invoicing Plugin https://github.com/Sylius/InvoicingPlugin https://plugins.sylius.com/plugin/invoicing-plugin/
Refund Plugin https://github.com/Sylius/RefundPlugin https://plugins.sylius.com/plugin/refund-plugin/

If you need an overview of Sylius' capabilities, schedule a consultation with our expert.

Additional resources for developers


To learn more about our contribution workflow and more, we encourage ypu 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 [email protected] with your question(s). We guarantee that we answer as soon as we can!

About

Sylius Mollie payment gateway integration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 79.8%
  • JavaScript 8.6%
  • Twig 7.9%
  • CSS 1.5%
  • Gherkin 1.2%
  • SCSS 0.8%
  • Shell 0.2%