Вышел Модуль интеграций 2.0 для MedusaЧитать анонс
Mollie logo

Mollie

Легко принимайте мультивалютные платежи через Mollie

npm install @variablevic/mollie-payments-medusa
Категория
Создано
Регионы
Сервис
Версия
0.0.13
Последнее обновление
2 года назад
Ежемесячные загрузки
Загрузка данных

Mollie Payments for Medusa

A comprehensive payment provider plugin that enables Mollie payments on Medusa V2 projects.

Follow @VariableVic Website LinkedIn

Table of Contents

Features

  • Multiple Payment Methods: Supports a wide range of Mollie payment methods including:

    • Mollie Hosted Checkout
    • iDEAL
    • Bancontact
    • Credit Card
    • PayPal
    • Apple Pay
    • Gift Card
  • Easily Extendable: The modular architecture makes it easy to add support for additional Mollie payment methods.

  • Webhook Support: Full support for Mollie webhooks for real-time payment status updates.

  • Automatic Capture: Configurable automatic capture of payments.

Предупреждение

This plugin has not been tested on a live store. Please conduct thorough testing before using it in a production environment. I am not responsible for any missed or failed payments resulting from the use of this plugin. If you encounter any issues, please report them here.

Prerequisites

  • Medusa server v2.3.0 or later
  • Node.js v20 or later
  • A Mollie account and API key with payment methods enabled.

Примечание

You can get an API key from your Mollie dashboard: click Browse > Developers > API keys

Installation

Configuration

Add the provider to the module in your file:

Configuration Options

OptionDescriptionDefault
Your Mollie API keyRequired
The URL to redirect to after paymentRequired
The URL of your Medusa serverRequired
Whether to automatically capture payments
The description that appears on the payment.
Whether to enable debug mode

Environment Variables

Create or update your file with the following variables:

Usage

Once installed and configured, the Mollie payment methods will be available in your Medusa admin. To enable them, log in to you Medusa Admin, browse to Settings > Regions, add or edit a region and select the desired Mollie providers from the dropdown.

Screenshot 2025-03-10 at 14 14 43

Make sure that the selected payment methods are enabled in your Mollie origanization settings as well.

Client-Side Integration

To integrate with your storefront, you'll need to implement the payment flow according to Mollie's and Medusa's documentation. Here's a basic example:

  1. Create a payment session in your checkout flow
  2. Redirect the customer to the Mollie payment page
  3. Handle the webhook notifications to update the payment status

Example integration using the Medusa Next.js Starter:

Supported Payment Methods

The plugin currently supports the following Mollie payment methods:

Payment MethodProvider ID
Hosted Checkout
iDEAL
Credit Card
Bancontact
Gift Card
PayPal
Apple Pay

Extending the Plugin

To add support for additional Mollie payment methods, create a new service in that extends the class:

Make sure to replace with the actual Mollie payment method ID.

Export your new service from . Then add your new service to the list of services in .

Local development and customization

In case you want to customize and test the plugin locally, refer to the Medusa Plugin docs.

License

TBD