you use $salesChannelContext->getSalesChannel()->getDomains()->first()->getUrl(), to retrieve a potential URL.
However, the domains might be empty - e.g. headless sales channels do not require those except for rare cases like double opt-in etc. so this might fail. also it ignores langauge etc.
Describe the bug In https://github.com/Adyen/adyen-shopware6/blob/develop/src/Handlers/AbstractPaymentMethodHandler.php#L637
you use $salesChannelContext->getSalesChannel()->getDomains()->first()->getUrl(), to retrieve a potential URL.
However, the domains might be empty - e.g. headless sales channels do not require those except for rare cases like double opt-in etc. so this might fail. also it ignores langauge etc.
Change that code to something like:
Versions Shopware version: 6.5.3.3 Plugin version: 3.12.0