1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Add INSTANT_BANK_PAY To PaymentType

This commit is contained in:
Benjamin Beganović 2021-11-11 17:49:31 +01:00
parent 619803f2be
commit a844553cf3
2 changed files with 27 additions and 0 deletions

View File

@ -53,6 +53,7 @@ class PaymentType extends StaticModel
const DIRECT_DEBIT = 42;
const BECS = 43;
const ACSS = 44;
const INSTANT_BANK_PAY = 45;
public static function parseCardType($cardName)
{

View File

@ -0,0 +1,26 @@
<?php
use App\Models\GatewayType;
use App\Models\PaymentType;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddInstantBankTransfer extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
$type = new PaymentType();
$type->id = PaymentType::INSTANT_BANK_PAY;
$type->name = 'Instant Bank Pay';
$type->gateway_type_id = GatewayType::INSTANT_BANK_PAY;
$type->save();
}
}