I was able to get through the long process of migrating a drupal 8 site to drupal 10.4. I need to preserve as much data and content as possible. The modules were originally added manually and many had to be updated several times going from 8 to 9 to 10. A webform that has a stripe credit card field from the stripe module is throwing an error because the stripe module cannot find the stripe-php library. I tried manually installing the library which of course did not work.
I tried using composer to install the library with "composer require stripe/stripe-php" and it installed the stripe-php library in the vendor folder under the stripe module. I am reading that this may not be the best place for this library. The composer.json file in the stripe directory has this:
"require": {
"stripe/stripe-php": "^16.6"
}
I am still getting the same error where the module cannot find the library:
AH01071: Got error 'PHP message: Uncaught PHP Exception Error: "Class "Stripe\\StripeClient" not found"
I am guessing that if I uninstall the stripe module and then install it wirg composer it would likely fix this. However if I remove the field from the webform and remove the module, I will lose the webform data.
Is there anyway to fix this library issue?