Added models for Przelewy24

This commit is contained in:
Lars Kusch 2021-10-09 16:41:43 +02:00
parent 5169e0587e
commit 1b0799e7b5
2 changed files with 6 additions and 2 deletions

View File

@ -104,7 +104,8 @@ class Gateway extends StaticModel
GatewayType::ALIPAY => ['refund' => false, 'token_billing' => false],
GatewayType::APPLE_PAY => ['refund' => false, 'token_billing' => false],
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::SEPA => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']],
GatewayType::PRZELEWY24 => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']]];
case 39:
return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true]]; //Checkout
break;

View File

@ -29,6 +29,7 @@ class GatewayType extends StaticModel
const BANCONTACT = 12;
const IDEAL = 13;
const HOSTED_PAGE = 14; // For gateways that contain multiple methods.
const PRZELEWY24 = 16;
public function gateway()
{
@ -69,6 +70,8 @@ class GatewayType extends StaticModel
return ctrans('texts.ideal');
case self::HOSTED_PAGE:
return ctrans('texts.aio_checkout');
case self::PRZELEWY24:
return ctrans('texts.przelewy24');
default:
return 'Undefined.';
break;