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::ALIPAY => ['refund' => false, 'token_billing' => false],
GatewayType::APPLE_PAY => ['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::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: case 39:
return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true]]; //Checkout return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true]]; //Checkout
break; break;

View File

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