Handling SEPA Direct Payment
This commit is contained in:
@@ -66,10 +66,31 @@ abstract class AbstractEventPaymentModule implements EventPaymentModule
|
||||
return $this->sanitizeAgainst($this->getOptions(), $config);
|
||||
}
|
||||
|
||||
/** @param array<string, mixed> $config */
|
||||
/**
|
||||
* Vollständig heißt: alle Pflichtfelder befüllt **und** keine ungültigen Werte. Erst dann darf die
|
||||
* Zahlungsart aktiv werden bzw. für Anmeldungen genutzt werden.
|
||||
*
|
||||
* @param array<string, mixed> $config
|
||||
*/
|
||||
public function isConfigurationComplete(array $config): bool
|
||||
{
|
||||
return $this->allRequiredFilled($this->getOptions(), $config);
|
||||
return $this->allRequiredFilled($this->getOptions(), $config)
|
||||
&& $this->configurationErrors($config) === [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Inhaltliche Prüfung der Admin-Config über das reine „befüllt" hinaus (z.B. Prüfziffer einer
|
||||
* IBAN). Leere Felder meldet hier niemand -- das ist Sache der Pflichtfeld-Prüfung.
|
||||
*
|
||||
* Standard: keine Prüfung. Bestandsmodule bleiben so, wie sie sind; eine Zahlungsart, bei der ein
|
||||
* ungültiger Wert erst die Bank zurückweist (Lastschrift), prüft selbst.
|
||||
*
|
||||
* @param array<string, mixed> $config
|
||||
* @return array<string, string> Optionsname => Meldung
|
||||
*/
|
||||
public function configurationErrors(array $config): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user