Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Commerce Swish

22 sites Security covered Drupal 10–11 Commerce ecosystem
View on drupal.org

This module provides a Swish payment gateway integration for Drupal Commerce, allowing Swedish online stores to accept payments via the popular mobile payment system. It supports various modes, including QR code generation and a fully automated production environment with direct API connection for real-time payment confirmation.

Provides Swish payment integration for the Drupal Commerce module.

Swish is the leading mobile payment system in Sweden, allowing customers to make real-time payments directly from their bank account using a mobile app. This module integrates Swish as a payment gateway into Drupal Commerce, enabling stores to accept payments from over 8 million Swedish users.

The module is developed and maintained by Websystem.

Features

The module provides a native Drupal Commerce payment gateway plugin and can be configured to operate in four distinct modes:

QR Code Mode: Displays a QR code at checkout for payment. This mode does not have an API connection to Swish. Each payment must be manually verified in your bank account before the order can be marked as complete. Can be used with personal phone number without any fee.

Swish Sandbox: Used for development where the full flow of QR code generation and payment handling is simulated, using a developer version of both Swish and BankID. Use separate mobile phone. Need Sandbox access at Swish

Not fully implemented yet.

Merchant Swish Simulator Used for testing payment flow on Drupal site. Developer certificates are required. A few seconds after QR code is generated, Swish will ping callback to mark payment as paid. No extra details are required, useful to test callback functionality and firewalls. Useful in development and staging sites.

Production Environment: A complete, automated solution with a direct API connection to the live Swish network. This mode enables real-time payment confirmation and automatically updates the order status in Drupal Commerce. Needs certificate from Swish.

Additional Requirements

Drupal Commerce 3.x

For Production Environment mode, you must have a merchant agreement for e-commerce ("Swish Företag" or "Swish Handel") with a participating Swedish bank, such as Swedbank, SEB, Handelsbanken, or Danske Bank. This agreement will provide you with the necessary Swish number and certificates for the API integration. Download certificates from http://portal.swish.nu/

Configuration

  • Go to Commerce > Configuration > Payment > Payment gateways (/admin/commerce/config/payment-gateways).
  • Click + Add payment gateway.
  • Give the gateway a Name (e.g., "Betala med Swish").
  • Select Swish from the Plugin dropdown.
  • Choose the desired Mode from the dropdown:
    • QR Code
    • Sandbox
    • MSS
    • Production
  • Enter your Swish Number provided by your bank.
  • If you selected Production mode, you will need to configure the paths to your security certificates as provided by your bank.
  • Configure the remaining settings and save the payment gateway.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Oct 2025
Latest release
3 months ago
Releases (12 mo)
6 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable 10–11 May 8, 2026
1.0.0 Stable 10–11 Jan 7, 2026
1.0.0-beta4 Pre-release 10–11 Dec 12, 2025
1.0.0-beta3 Pre-release 10–11 Dec 12, 2025
1.0.0-beta2 Pre-release 10–11 Dec 11, 2025
1.0.0-beta1 Pre-release 10–11 Oct 17, 2025