diff --git a/src/Resources/PaymentTypes/SepaDirectDebit.php b/src/Resources/PaymentTypes/SepaDirectDebit.php index 8686525a..7a03ec67 100755 --- a/src/Resources/PaymentTypes/SepaDirectDebit.php +++ b/src/Resources/PaymentTypes/SepaDirectDebit.php @@ -16,9 +16,7 @@ class SepaDirectDebit extends BasePaymentType { use CanDirectCharge; use CanPayout; - use CanRecur { - setRecurring as public; - } + use CanRecur; /** @var string $iban */ protected $iban; @@ -94,6 +92,18 @@ public function setHolder(?string $holder): self return $this; } + /** + * Enables or disables recurring collection for this SEPA direct debit type. + * + * Set to `true` to register the type for recurring (mandate-based) collection; defaults to `false` + * for one-off collection. Applied once, at type registration. + */ + public function setRecurring(bool $active): self + { + $this->recurring = $active; + return $this; + } + /** * Always exposes the recurring flag (default false) so the SEPA direct debit type registration * carries the mandate intent.