From 9480215f47471614d4f6db42a01417816385d09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sat, 16 Oct 2021 15:53:05 +0200 Subject: [PATCH] Add DIRECT_DEBIT for PaymentType --- app/Models/PaymentType.php | 1 + ...5200_add_direct_debit_to_payment_types.php | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 database/migrations/2021_10_16_135200_add_direct_debit_to_payment_types.php 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(); + }); + } +}