- 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.