Commerce Opayo PI 2.0.0 incompatible with Commerce Payment 3.x (requires ^2.40)

Created on 12 September 2025, 2 days ago

Problem/Motivation

When attempting to install drupal/commerce_opayo_pi version 2.0.0, Composer fails due to an incompatible dependency on drupal/commerce_payment.
The release of commerce_opayo_pi 2.0.0 requires drupal/commerce_payment ^2.40, but Commerce 3.x is now the stable and widely used branch.
This prevents installation of the module in projects already using Commerce 3.x.

Steps to reproduce

  1. Create a Drupal project with Commerce 3.x (e.g. drupal/commerce_payment 3.1.0).
  2. Require drupal/commerce_opayo_pi:^2.0 via Composer.
  3. Observe the Composer dependency conflict error:
  Problem 1
    - Root composer.json requires drupal/commerce_opayo_pi ^2.0 -> satisfiable by drupal/commerce_opayo_pi[2.0.0].
    - drupal/commerce_opayo_pi 2.0.0 requires drupal/commerce_payment ^2.40 -> 
      found drupal/commerce_payment[dev-2.x, 2.40.0, 2.x-dev] 
      but the package is fixed to 3.1.0 (lock file version) by a partial update.

Proposed resolution

Update commerce_opayo_pi to declare compatibility with commerce_payment 3.x.
The module should either:

  • Release a new version (e.g. 2.1.x) that allows drupal/commerce_payment:^3.0, or
  • Broaden the dependency constraint to support both ^2.40 and ^3.0.

This will allow sites running Commerce 3.x to install and use the module without forcing a downgrade.

Remaining tasks

  • Confirm if the module code is compatible with Commerce 3.x APIs.
  • Update composer.json dependency constraints.
  • Create a release that supports Commerce 3.x.

User interface changes

None.

API changes

None expected, unless Commerce 3.x introduces changes that require adjustments.

Data model changes

None.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom c_archer Cumbria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024