mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:54:30 -04:00
Added models for Przelewy24
This commit is contained in:
parent
5169e0587e
commit
1b0799e7b5
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user