Added models for ACSS

This commit is contained in:
Lars Kusch 2021-10-12 16:32:16 +02:00
parent e63fbd68e6
commit 845ccade85
3 changed files with 8 additions and 3 deletions

View File

@ -113,8 +113,8 @@ class Gateway extends StaticModel
GatewayType::EPS => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']], 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::BANCONTACT => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']],
GatewayType::BECS => ['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: case 39:
return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true, 'webhooks' => [' ']]]; //Checkout return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true, 'webhooks' => [' ']]]; //Checkout
break; break;

View File

@ -11,6 +11,8 @@
namespace App\Models; namespace App\Models;
use function Symfony\Component\String\s;
class GatewayType extends StaticModel class GatewayType extends StaticModel
{ {
public $timestamps = false; public $timestamps = false;
@ -32,7 +34,7 @@ class GatewayType extends StaticModel
const GIROPAY = 15; const GIROPAY = 15;
const PRZELEWY24 = 16; const PRZELEWY24 = 16;
const EPS = 17; const EPS = 17;
const BACS = 19; const ACSS = 19;
const BECS = 20; const BECS = 20;
public function gateway() public function gateway()
@ -82,6 +84,8 @@ class GatewayType extends StaticModel
return ctrans('texts.eps'); return ctrans('texts.eps');
case self::BECS: case self::BECS:
return ctrans('tets.becs'); return ctrans('tets.becs');
case self::ACSS:
return ctrans('texts.acss');
default: default:
return 'Undefined.'; return 'Undefined.';
break; break;

View File

@ -51,6 +51,7 @@ class PaymentType extends StaticModel
const PRZELEWY24 = 40; const PRZELEWY24 = 40;
const EPS = 41; const EPS = 41;
const BECS = 43; const BECS = 43;
const ACSS = 44;
public static function parseCardType($cardName) public static function parseCardType($cardName)
{ {