From 695d64de5fb47433f17205af4181d4740eb4aec3 Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Sun, 10 Oct 2021 06:47:03 +0200 Subject: [PATCH] Added models --- app/Models/Gateway.php | 1 + app/Models/GatewayType.php | 3 +++ app/Models/PaymentType.php | 1 + 3 files changed, 5 insertions(+) diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index abb0d2c50ac0..b632dfc7dff7 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -106,6 +106,7 @@ class Gateway extends StaticModel GatewayType::SOFORT => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], //Stripe GatewayType::SEPA => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], GatewayType::GIROPAY => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], + GatewayType::EPS => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], GatewayType::IDEAL => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']]]; case 39: diff --git a/app/Models/GatewayType.php b/app/Models/GatewayType.php index 6397cef7fc6e..eb2b3c891116 100644 --- a/app/Models/GatewayType.php +++ b/app/Models/GatewayType.php @@ -30,6 +30,7 @@ class GatewayType extends StaticModel const IDEAL = 13; const HOSTED_PAGE = 14; // For gateways that contain multiple methods. const GIROPAY = 15; + const EPS = 17; public function gateway() { @@ -72,6 +73,8 @@ class GatewayType extends StaticModel return ctrans('texts.aio_checkout'); case self::GIROPAY: return ctrans('texts.giropay'); + case self::EPS: + return ctrans('texts.EPS'); default: return 'Undefined.'; break; diff --git a/app/Models/PaymentType.php b/app/Models/PaymentType.php index a77b5f81addc..7999f22a8d7d 100644 --- a/app/Models/PaymentType.php +++ b/app/Models/PaymentType.php @@ -48,6 +48,7 @@ class PaymentType extends StaticModel const IDEAL = 37; const HOSTED_PAGE = 38; const GIROPAY = 39; + const EPS = 41; public static function parseCardType($cardName) {