From 87c6241947f0782de40c9002755b301de978390d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 7 Oct 2021 18:01:14 +0200 Subject: [PATCH] Add new payment type --- app/Models/PaymentType.php | 1 + ...55410_add_hosted_page_to_payment_types.php | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 database/migrations/2021_10_07_155410_add_hosted_page_to_payment_types.php diff --git a/app/Models/PaymentType.php b/app/Models/PaymentType.php index ff396181578e..faaeb9052f0a 100644 --- a/app/Models/PaymentType.php +++ b/app/Models/PaymentType.php @@ -46,6 +46,7 @@ class PaymentType extends StaticModel const KBC = 35; const BANCONTACT = 36; const IDEAL = 37; + const HOSTED_PAGE = 38; public static function parseCardType($cardName) { diff --git a/database/migrations/2021_10_07_155410_add_hosted_page_to_payment_types.php b/database/migrations/2021_10_07_155410_add_hosted_page_to_payment_types.php new file mode 100644 index 000000000000..8aefe97af473 --- /dev/null +++ b/database/migrations/2021_10_07_155410_add_hosted_page_to_payment_types.php @@ -0,0 +1,24 @@ +id = 35; + $type->name = 'Hosted Page'; + $type->gateway_type_id = GatewayType::HOSTED_PAGE; + + $type->save(); + } +}