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!