OnPay
This module integrates the OnPay payment gateway with Drupal Commerce, allowing your site to accept a variety of payment methods securely through OnPay's offsite payment window. It supports the full payment lifecycle, including authorizations, captures, and refunds, with options for auto-capture and custom payment window designs.
OnPay
Integrate OnPay payment gateway with your Drupal site.
OnPay is a Scandinavian payment service provider offering competitive rates and a wide range of payment methods. This module provides seamless integration with OnPay for Drupal Commerce stores.
Features
- Multiple payment methods — Accept payments via credit/debit cards, MobilePay, ViaBill, Anyday, Vipps, Swish, Google Pay, Apple Pay and PayPal
- Secure offsite payments — Customers complete payment on OnPay's PCI-DSS compliant payment window
- Full payment lifecycle — Authorization, capture, void, and refund support
- Partial refunds — Process partial refunds directly from the Drupal admin
- Auto-capture or manual — Choose to capture payments immediately or authorize first
- Custom payment window designs — Use designs configured in your OnPay dashboard
- Multi-language support — Payment window available in 11 languages including English, Danish, Swedish, Norwegian, German, and more
- Test mode — Safely test your integration before going live
Sub-modules
Commerce OnPay — Provides OnPay as a payment gateway for Drupal Commerce with full support for the offsite redirect payment flow.
Requirements
- Drupal 10.3+ or Drupal 11
- PHP 8.2+
- Drupal Commerce 3.x (for Commerce integration)
- An OnPay merchant account
Getting Started
Install via Composer: composer require drupal/onpay
Enable the module and Commerce OnPay sub-module
Add a new payment gateway at Commerce → Configuration → Payment gateways
Enter your Gateway ID, Window Secret, and API Key from your OnPay dashboard
Links
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | 10–11 | Mar 23, 2026 |