diff --git a/app/Models/Gateway.php b/app/Models/Gateway.php index 8bd0b64eb09f..d71e55431e94 100644 --- a/app/Models/Gateway.php +++ b/app/Models/Gateway.php @@ -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; diff --git a/app/Models/GatewayType.php b/app/Models/GatewayType.php index 7a77a56e5142..636bb27dc17c 100644 --- a/app/Models/GatewayType.php +++ b/app/Models/GatewayType.php @@ -29,7 +29,8 @@ 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() { return $this->belongsTo(Gateway::class); @@ -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;