From 367820af6b1a53480737ad6d21c7d4f609660239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 24 Sep 2021 23:17:29 +0200 Subject: [PATCH] Add new `PaymentType` --- app/Models/PaymentType.php | 1 + ..._09_24_211504_add_kbc_to_payment_types.php | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 database/migrations/2021_09_24_211504_add_kbc_to_payment_types.php diff --git a/app/Models/PaymentType.php b/app/Models/PaymentType.php index b6b28cd4c8f1..7ac7d3f1ecc2 100644 --- a/app/Models/PaymentType.php +++ b/app/Models/PaymentType.php @@ -42,6 +42,7 @@ class PaymentType extends StaticModel const SEPA = 29; const GOCARDLESS = 30; const CRYPTO = 31; + const KBC = 35; public static function parseCardType($cardName) { diff --git a/database/migrations/2021_09_24_211504_add_kbc_to_payment_types.php b/database/migrations/2021_09_24_211504_add_kbc_to_payment_types.php new file mode 100644 index 000000000000..9962e7802c4f --- /dev/null +++ b/database/migrations/2021_09_24_211504_add_kbc_to_payment_types.php @@ -0,0 +1,26 @@ +id = 35; + $type->name = 'KBC/CBC'; + $type->gateway_type_id = GatewayType::KBC; + + $type->save(); + } +}