I have a main payment gateway which I want to configure. And multiple other payment gateways which I want to inherit the main gateway's configuration data.

I only have the CommercePaymentGateway ID (set in the annotation) of the main payment gateway and I want to get it's configuration inside of the other payment gateways.

I found this post, but the solution is for Drupal 7 and doesn't work in Drupal 8 and 9.

How could I achieve this? Is there a better way to inherit configurations?

Thank you for any input!

  • Are you configuring the payment gateway in the UI? Is the configuration data you are referring to the settings that you input in the UI? Jul 31, 2022 at 3:05
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Jul 31, 2022 at 13:54
  • @PatrickKenny Yes, the configuration data I am reffering to is the settings you input right after you create a payment gateway in the UI. Aug 1, 2022 at 10:25


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.