mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01: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::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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user