feat(payments): Express-Adressen nur aus erlaubten Laendern (Setting express_countries, Standard DE)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user