feat(payments): Express-Adressen nur aus erlaubten Laendern (Setting express_countries, Standard DE)

This commit is contained in:
Thomas Bartelt
2026-09-13 21:49:09 +02:00
parent da54028a6e
commit 5e6fcb0c3d
3 changed files with 13 additions and 2 deletions
+6
View File
@@ -460,6 +460,12 @@ abstract class AbstractProvider implements ProviderInterface
return $this->shopBaseUrl() . '/Warenkorb/?payment_express_cancel=' . $this->module();
}
/** Laender, aus denen Express-Adressen angenommen werden (ISO-2, kommagetrennt). Standard: nur DE. */
public function expressCountries(): string
{
return $this->setting('express_countries', 'DE');
}
/** countries.id zu einem ISO-3166-Alpha-2-Code, 0 wenn das Land im Shop nicht lieferbar ist. */
public function countryIdByIso(string $iso): int
{