I am facing a problem after enabling the module and try to create new Payment Method. I am also unable to change the payment method on create , even the default that comes with Commerce module.
Error: Class 'CyberSource\Configuration' not found in Drupal\commerce_cybersource\Plugin\Commerce\PaymentGateway\Flex->__construct() (line 174 of /***/***/***/web/modules/contrib/commerce_cybersource/src/Plugin/Commerce/PaymentGateway/Flex.php)
#0 /***/***/***/web/modules/contrib/commerce_cybersource/src/Plugin/Commerce/PaymentGateway/Flex.php(202): Drupal\commerce_cybersource\Plugin\Commerce\PaymentGateway\Flex->__construct(Array, 'cybersource_fle...', Array, Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\commerce_payment\PaymentTypeManager), Object(Drupal\commerce_payment\PaymentMethodTypeManager), Object(Drupal\Component\Datetime\Time), Object(Drupal\Core\Logger\LoggerChannel), Object(Drupal\Core\Http\RequestStack))
#1 /***/***/***/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\commerce_cybersource\Plugin\Commerce\PaymentGateway\Flex::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'cybersource_fle...', Array)
#2 /***/***/***/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('cybersource_fle...', Array)
#3 /***/***/***/web/modules/contrib/commerce/src/CommerceSinglePluginCollection.php(59): Drupal\Component\Plugin\PluginManagerBase->createInstance('cybersource_fle...', Array)
#4 /***/***/***/web/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\commerce\CommerceSinglePluginCollection->initializePlugin('cybersource_fle...')
#5 /***/***/***/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(83): Drupal\Component\Plugin\LazyPluginCollection->get('cybersource_fle...')
#6 /***/***/***/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(99): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->setConfiguration(Array)
#7 /***/***/***/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(55): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->addInstanceId('cybersource_fle...', Array)
#8 /***/***/***/web/modules/contrib/commerce/src/CommerceSinglePluginCollection.php(41): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->__construct(Object(Drupal\commerce_payment\PaymentGatewayManager), 'cybersource_fle...', Array)
#9 /***/***/***/web/modules/contrib/commerce/modules/payment/src/Entity/PaymentGateway.php(266): Drupal\commerce\CommerceSinglePluginCollection->__construct(Object(Drupal\commerce_payment\PaymentGatewayManager), 'cybersource_fle...', Array, Object(Drupal\commerce_payment\Entity\PaymentGateway))
#10 /***/***/***/web/modules/contrib/commerce/modules/payment/src/Entity/PaymentGateway.php(186): Drupal\commerce_payment\Entity\PaymentGateway->getPluginCollection()
#11 /***/***/***/web/core/lib/Drupal/Core/Entity/EntityForm.php(324): Drupal\commerce_payment\Entity\PaymentGateway->getPluginCollections()
#12 /***/***/***/web/core/lib/Drupal/Core/Entity/EntityForm.php(293): Drupal\Core\Entity\EntityForm->copyFormValuesToEntity(Object(Drupal\commerce_payment\Entity\PaymentGateway), Array, Object(Drupal\Core\Form\FormState))
#13 /***/***/***/web/core/lib/Drupal/Core/Entity/EntityForm.php(170): Drupal\Core\Entity\EntityForm->buildEntity(Array, Object(Drupal\Core\Form\FormState))
#14 [internal function]: Drupal\Core\Entity\EntityForm->afterBuild(Array, Object(Drupal\Core\Form\FormState))
#15 /***/***/***/web/core/lib/Drupal/Core/Form/FormBuilder.php(1078): call_user_func_array(Array, Array)
#16 /***/***/***/web/core/lib/Drupal/Core/Form/FormBuilder.php(574): Drupal\Core\Form\FormBuilder->doBuildForm('commerce_paymen...', Array, Object(Drupal\Core\Form\FormState))
#17 /***/***/***/web/core/lib/Drupal/Core/Form/FormBuilder.php(320): Drupal\Core\Form\FormBuilder->processForm('commerce_paymen...', Array, Object(Drupal\Core\Form\FormState))
#18 /***/***/***/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\commerce_payment\Form\PaymentGatewayForm), Object(Drupal\Core\Form\FormState))
#19 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#20 /***/***/***/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#21 /***/***/***/web/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#22 /***/***/***/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#23 /***/***/***/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#24 /***/***/***/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#25 /***/***/***/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#26 /***/***/***/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /***/***/***/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /***/***/***/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /***/***/***/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /***/***/***/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /***/***/***/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /***/***/***/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /***/***/***/web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /***/***/***/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#35 {main}
I am facing the same error on new clean Commerce distribution.
Any idea?