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(); + } +}