Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Commerce Checkout Lock

No security coverage Under active development 1 sites

Part of the Commerce ecosystem · 487 projects

This module prevents users from submitting the Drupal Commerce checkout form multiple times. It uses server-side locking and client-side double-click protection to ensure only one submission is processed, while automatically cleaning up locks on completion or termination.

Commerce Checkout Lock

Prevents duplicate checkout submissions in Drupal Commerce.

Features

  • Server-side locking using Drupal's persistent lock backend
  • Client-side double-click protection with visual feedback
  • Automatic lock cleanup via kernel terminate safety net
  • Configurable checkout pane for flexible placement

Installation

  1. Install as usual: `composer require drupal/commerce_checkout_lock`
  2. Enable the module
  3. Configure your checkout flow to include the "Checkout Lock" pane before payment

Configuration

In your checkout flow settings, add the "Checkout Lock" pane to an existing step
(e.g., "Review" or "Payment") before any payment-related panes. The pane is
invisible to customers - it only attaches the protection logic to the form.

How it works

  1. When checkout form submits, JavaScript disables buttons and shows "Processing..."
  2. The checkout pane acquires a persistent lock for the order
  3. If lock fails (concurrent submission), user sees an error message
  4. Lock releases on checkout completion or request termination (safety net)

Requirements

  • Drupal 10.3+ or 11.x
  • Commerce 2.x or 3.x
Drupal 10–11

Ask your assistant about Commerce Checkout Lock

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
1
Tracked since
Jan 2026
Latest release
9 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Jan 13, 2026