Added models

This commit is contained in:
Lars Kusch 2021-10-11 18:05:47 +02:00
parent e3385c7b08
commit 14ea63ced7
3 changed files with 10 additions and 2 deletions

View File

@ -112,8 +112,8 @@ class Gateway extends StaticModel
GatewayType::GIROPAY => ['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::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::IDEAL => ['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']]];
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

View File

@ -32,6 +32,8 @@ 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 BECS = 20;
public function gateway() public function gateway()
{ {
@ -78,6 +80,10 @@ class GatewayType extends StaticModel
return ctrans('texts.giropay'); return ctrans('texts.giropay');
case self::EPS: case self::EPS:
return ctrans('texts.eps'); return ctrans('texts.eps');
case self::BACS:
return ctrans('text.bacs');
case self::BECS:
return ctrans('tets.becs');
default: default:
return 'Undefined.'; return 'Undefined.';
break; break;

View File

@ -50,6 +50,8 @@ class PaymentType extends StaticModel
const GIROPAY = 39; const GIROPAY = 39;
const PRZELEWY24 = 40; const PRZELEWY24 = 40;
const EPS = 41; const EPS = 41;
const BACS = 43;
const BECS = 44;
public static function parseCardType($cardName) public static function parseCardType($cardName)
{ {