Composer won't allow for D10

Created on 7 February 2024, about 1 year ago

Does anyone have this working on a D10 site? If so, please share how to install it.

I'm running a D10 site. This module seems ideal as I'm trying to add Payment to a Registration.

This module requires creditfield which only has a D7. I tried some things like:
composer require 'drupal/payment_authnet:^2.0' 'drupal/creditfield:^1.1'
But composer won't allow me to install payment_authnet.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States eahonet

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

Comments & Activities

  • Issue created by @eahonet
  • 🇮🇳India dineshkumarbollu

    Hi @eahonet

    I am also unable to install in Drupal 10, The module is dependent on creditfield , which is not compatible with D10, Maintainer already created MR on the CreditField module.

    https://www.drupal.org/project/creditfield/issues/3286821 📌 Automated Drupal 10 compatibility fixes RTBC

  • 🇺🇸United States eahonet

    That is helpful @dineshkumarbollu

    Here's how I got it to install on D10 for others with the same issue:

    1. first install lienent to allow a non-d10 compatible module to be included. Do this by composer require mglaman/composer-drupal-lenient and then composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/creditfield"]'
    2. next, I added the patch to composer from here: https://www.drupal.org/project/creditfield/issues/3286821 📌 Automated Drupal 10 compatibility fixes RTBC
    3. then i run this composer command: composer require 'drupal/payment_authnet:^2.0' 'drupal/creditfield:^1.x-dev' -W

    Now I have payment_authnet installed on D10. Still need to figure out how to configure this payment thing, but for now, composer is happy and i was able to drush enable the module.

  • Assigned to vaza18
  • Status changed to Fixed 2 months ago
  • 🇺🇦Ukraine vaza18

    In order to resolve an issue with Creditfield changes prepared for Drupal 10, Composer minimum stability should be "dev". Payment Authnet 2.1.0 uses dev version of Creditfield module, which contains fixes for Drupal 10.

Production build 0.71.5 2024