This repository provides a commercetools Connect payment integration connector for MONEI, enabling merchants to accept Bizum, card payments, Apple Pay, Google Pay, and SEPA Direct Debit through commercetools Composable Commerce.
MONEI is a Payment Institution licensed by the Banco de España (reg. #6911), providing API-first payment infrastructure for online and in-store commerce across Spain and Europe.
This connector follows the commercetools payment integration template pattern and is compatible with commercetools Checkout.
| Method | Type | Capture | Refund | Cancel |
|---|---|---|---|---|
| Card (Visa, Mastercard) | Web component | Manual / Auto | ✅ | ✅ |
| Bizum | Redirect | Auto | ✅ | ✅ |
| Apple Pay | Web component | Auto | ✅ | ✅ |
| Google Pay | Web component | Auto | ✅ | ✅ |
| SEPA Direct Debit | Form input | Auto | ✅ | N/A |
- Multi-acquirer routing — intelligent routing across Comercia/CaixaBank, GetNet/Santander, and Shift4/Finaro for optimal authorization rates
- Bizum — the only commercetools connector offering native Bizum acquiring, Spain's dominant mobile payment method (28M+ users)
- PCI DSS compliant — card data handled via MONEI.js secure iframes, reducing merchant PCI scope
The connector contains two applications:
| Application | Type | Description |
|---|---|---|
| Enabler | assets |
Frontend library wrapping MONEI payment UI components (card input, Bizum button, wallet buttons). Served as static assets to commercetools Checkout or custom frontends. |
| Processor | service |
Backend service orchestrating payment operations with the MONEI Payments API. Handles payment creation, capture, refund, cancellation, and webhook event processing. |
Both applications can be hosted on Connect or on alternative platforms, and can be used together with Checkout or in custom frontend applications.
Sign up at monei.com and obtain your API Key and Account ID from MONEI Dashboard → Settings → API Access.
Create an API client with the following scopes:
manage_paymentsmanage_ordersview_sessionsview_api_clientsmanage_checkout_payment_intentsintrospect_oauth_tokensmanage_typesview_types
The connector requires these URLs (defaults to europe-west1.gcp):
CTP_API_URL— commercetools API URLCTP_AUTH_URL— commercetools Auth URLCTP_SESSION_URL— commercetools Session URL
cp processor/.env.template processor/.env
cp enabler/.env.template enabler/.envEdit the .env files with your MONEI and commercetools credentials.
docker compose upThis starts three services:
- JWT Server — local authentication for development
- Enabler — frontend components at
http://localhost:3000 - Processor — backend API at
http://localhost:8080
cd processor && npm test
cd enabler && npm testThe deployment configuration is specified in connect.yaml. Below are the key MONEI-specific variables:
| Variable | Description | Required | Secured |
|---|---|---|---|
MONEI_API_KEY |
MONEI API key from Dashboard | Yes | Yes |
MONEI_ACCOUNT_ID |
MONEI merchant account ID | Yes | No |
MONEI_WEBHOOK_SECRET |
HMAC key for webhook signature verification | Yes | Yes |
MONEI_ENVIRONMENT |
test or live |
Yes | No |
MONEI_PAYMENT_METHODS_ENABLED |
Comma-separated list: bizum,card,applePay,googlePay,sepaDirectDebit |
No | No |
For the full list of commercetools configuration variables, see connect.yaml.
The processor exposes a webhook endpoint at /webhooks/monei for receiving payment status notifications from MONEI.
- Go to MONEI Dashboard → Settings → Webhooks
- Add the webhook URL:
https://<your-processor-url>/webhooks/monei - Copy the HMAC signing key and set it as
MONEI_WEBHOOK_SECRET
All incoming webhooks are verified using HMAC-SHA256 signatures before processing.
MONEI follows the ISO 4217 standard. commercetools provides monetary values in cent amounts (e.g., €1.50 = 150). The connector handles conversion automatically using utilities from connect-payments-sdk.
Deploy the connector to commercetools Connect using the Connect CLI:
npm install -g @commercetools-connect/cli
connect-cli connector create
connect-cli connector publish- MONEI API Reference
- MONEI.js Overview
- commercetools Payment Integration Template
- commercetools Checkout
- MONEI commercetools Setup Guide
MONEI Digital Payments, S.L. Passeig de Gràcia, 19, 08007 Barcelona, Spain Banco de España reg. #6911
- Website: monei.com
- API Docs: docs.monei.com
- Support: support.monei.com
- LinkedIn: MONEI Digital Payments