File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 44
55class MandateMethod
66{
7+ public const BACS = 'bacs ' ;
8+
79 public const DIRECTDEBIT = 'directdebit ' ;
810
911 public const CREDITCARD = 'creditcard ' ;
@@ -20,6 +22,10 @@ public static function getForFirstPaymentMethod($firstPaymentMethod)
2022 return static ::PAYPAL ;
2123 }
2224
25+ if ($ firstPaymentMethod === PaymentMethod::BACS ) {
26+ return static ::BACS ;
27+ }
28+
2329 if (in_array ($ firstPaymentMethod , [
2430 PaymentMethod::APPLEPAY ,
2531 PaymentMethod::CREDITCARD ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public function dpTestGetForFirstPaymentMethod()
2424 {
2525 return [
2626 [PaymentMethod::APPLEPAY , MandateMethod::CREDITCARD ],
27+ [PaymentMethod::BACS , MandateMethod::BACS ],
2728 [PaymentMethod::CREDITCARD , MandateMethod::CREDITCARD ],
2829 [PaymentMethod::BANCONTACT , MandateMethod::DIRECTDEBIT ],
2930 [PaymentMethod::BELFIUS , MandateMethod::DIRECTDEBIT ],
You can’t perform that action at this time.
0 commit comments