diff --git a/app/Models/PaymentType.php b/app/Models/PaymentType.php index f0f6d8c91b3c..af84feeb9796 100644 --- a/app/Models/PaymentType.php +++ b/app/Models/PaymentType.php @@ -50,6 +50,7 @@ class PaymentType extends StaticModel const GIROPAY = 39; const PRZELEWY24 = 40; const EPS = 41; + const DIRECT_DEBIT = 42; public static function parseCardType($cardName) { diff --git a/database/migrations/2021_10_16_135200_add_direct_debit_to_payment_types.php b/database/migrations/2021_10_16_135200_add_direct_debit_to_payment_types.php new file mode 100644 index 000000000000..8783488476cf --- /dev/null +++ b/database/migrations/2021_10_16_135200_add_direct_debit_to_payment_types.php @@ -0,0 +1,28 @@ +id = 42; + $type->name = 'Direct Debit'; + $type->gateway_type_id = GatewayType::DIRECT_DEBIT; + + $type->save(); + }); + } +}