Drupal is a registered trademark of Dries Buytaert

commerce_swish

15 sites Security covered
View on drupal.org

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.

Activity

Total releases
5
First release
Oct 2025
Latest release
1 month ago
Release cadence
21 days
Stability
20% stable

Release Timeline

Releases

Version Type Release date
1.0.0 Stable Jan 7, 2026
1.0.0-beta4 Pre-release Dec 12, 2025
1.0.0-beta3 Pre-release Dec 12, 2025
1.0.0-beta2 Pre-release Dec 11, 2025
1.0.0-beta1 Pre-release Oct 17, 2025