mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Added models
This commit is contained in:
parent
e3385c7b08
commit
14ea63ced7
@ -112,8 +112,8 @@ class Gateway extends StaticModel
|
||||
GatewayType::GIROPAY => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']],
|
||||
GatewayType::EPS => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']],
|
||||
GatewayType::BANCONTACT => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']],
|
||||
GatewayType::IDEAL => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']],
|
||||
];
|
||||
GatewayType::BECS => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']],
|
||||
GatewayType::IDEAL => ['refund' => true, 'token_billing' => true, 'webhooks' => ['source.chargeable', 'charge.succeeded']]];
|
||||
|
||||
case 39:
|
||||
return [GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true, 'webhooks' => [' ']]]; //Checkout
|
||||
|
@ -32,6 +32,8 @@ class GatewayType extends StaticModel
|
||||
const GIROPAY = 15;
|
||||
const PRZELEWY24 = 16;
|
||||
const EPS = 17;
|
||||
const BACS = 19;
|
||||
const BECS = 20;
|
||||
|
||||
public function gateway()
|
||||
{
|
||||
@ -78,6 +80,10 @@ class GatewayType extends StaticModel
|
||||
return ctrans('texts.giropay');
|
||||
case self::EPS:
|
||||
return ctrans('texts.eps');
|
||||
case self::BACS:
|
||||
return ctrans('text.bacs');
|
||||
case self::BECS:
|
||||
return ctrans('tets.becs');
|
||||
default:
|
||||
return 'Undefined.';
|
||||
break;
|
||||
|
@ -50,6 +50,8 @@ class PaymentType extends StaticModel
|
||||
const GIROPAY = 39;
|
||||
const PRZELEWY24 = 40;
|
||||
const EPS = 41;
|
||||
const BACS = 43;
|
||||
const BECS = 44;
|
||||
|
||||
public static function parseCardType($cardName)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user