From 845ccade8528befae759be02e2def766854cd290 Mon Sep 17 00:00:00 2001 From: Lars Kusch Date: Tue, 12 Oct 2021 16:32:16 +0200 Subject: [PATCH] Added models for ACSS --- app/Models/Gateway.php | 4 ++-- app/Models/GatewayType.php | 6 +++++- app/Models/PaymentType.php | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index df3575c9f3ff..2bc85dca619a 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -113,8 +113,8 @@ class Gateway extends StaticModel GatewayType::EPS => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], GatewayType::BANCONTACT => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], GatewayType::BECS => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], - GatewayType::IDEAL => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']]]; - + GatewayType::IDEAL => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], + GatewayType::ACSS => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']]]; case 39: return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true, 'webhooks' => [' ']]]; //Checkout break; diff --git a/app/Models/GatewayType.php b/app/Models/GatewayType.php index a9f04a56d008..f694f7875424 100644 --- a/app/Models/GatewayType.php +++ b/app/Models/GatewayType.php @@ -11,6 +11,8 @@ namespace App\Models; +use function Symfony\Component\String\s; + class GatewayType extends StaticModel { public $timestamps = false; @@ -32,7 +34,7 @@ class GatewayType extends StaticModel const GIROPAY = 15; const PRZELEWY24 = 16; const EPS = 17; - const BACS = 19; + const ACSS = 19; const BECS = 20; public function gateway() @@ -82,6 +84,8 @@ class GatewayType extends StaticModel return ctrans('texts.eps'); case self::BECS: return ctrans('tets.becs'); + case self::ACSS: + return ctrans('texts.acss'); default: return 'Undefined.'; break; diff --git a/app/Models/PaymentType.php b/app/Models/PaymentType.php index 937c5daa37ff..dfeb6079f2ed 100644 --- a/app/Models/PaymentType.php +++ b/app/Models/PaymentType.php @@ -51,6 +51,7 @@ class PaymentType extends StaticModel const PRZELEWY24 = 40; const EPS = 41; const BECS = 43; + const ACSS = 44; public static function parseCardType($cardName) {