- 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 thencomposer 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 1:47pm 26 February 2025 - 🇺🇦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.