Added models

This commit is contained in:
Lars Kusch 2021-10-10 06:47:03 +02:00
parent 492015a78f
commit 695d64de5f
3 changed files with 5 additions and 0 deletions

View File

@ -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:

View File

@ -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;

View File

@ -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)
{