Skip to content

Installation

markusmichalski-fc edited this page Nov 15, 2021 · 6 revisions

1. Mollie Account

First you need your own Mollie Account.

Go to Mollie to create your account.

2. Install Plugin

There are 2 ways to install this plugin.

Either install via composer, or download a release, version or pre-release on GitHub and install it manually.

Composer Installation

  1. Connect to your webserver via SSH and navigate to the base folder of your OXID eShop (where the composer.json is located)
  2. Install the plugin via the following command

composer require mollie/mollie-oxid

Github Installation

  1. Download a version from GitHub. Please use the attached ZIP files (mollie-oxid6-X.Y.Z.zip) from the list of available releases: GitHub Releases.

Please note, that only stable and official releases are tested on our side. There's no guarantee or warranty for pre-releases or selfmade versions from commits.

  1. Create the folder "mollie" in the "source/modules" folder of the Oxid 6 installation.

  2. Create the folder "molliepayment" in the new "source/modules/mollie" folder of the Oxid 6 installation.

  3. Copy the content of the downloaded version in the newly created "molliepayment" folder.

  4. In the composer.json file in the base folder of the shop add the autoload configuration or extend if already existing:

    "autoload": {
      "psr-4": {
        "Mollie\\Payment\\": "./source/modules/mollie/molliepayment",
        "Mollie\\Api\\": "./source/modules/mollie/molliepayment/lib/mollie-api-php/src/"
      }
    },
  5. Connect to the webserver with a console, navigate to the shop base folder and execute the following command to regenerate the autoloader files:

    composer dump-autoload
    
  6. In OXID versions from 6.2 on (older versions can skip this step) you must now import the module configuration. To do this, log in via SSH to the server on which the shop installation is located and navigate to the directory in which the source and vendor folders are located. Execute the following commands:

    vendor/bin/oe-console oe:module:install-configuration source/modules/mollie/molliepayment/
    vendor/bin/oe-console oe:module:apply-configuration
    

    You should then receive the message

    Module configuration has been installed

    after the first command.

    The second command lists all modules available in the shop including the message, that the configuration is applied.

    Applying modules configuration for the shop with id 1:
    Applying configuration for module with id molliepayment

3. Finalizing Steps

It's time to configure your plugin to make it work in your shop.

The plugin will create OXID payment methods that can be used like any other payment methods.

To add these methods, just activate the module in then OXID Backend.

Please see our section on plugin configuration to get more out of the plugin and adjust it to fit your business.

Thank you for being a part of Mollie!