mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:44:28 -04:00
Add INSTANT_BANK_PAY To PaymentType
This commit is contained in:
parent
619803f2be
commit
a844553cf3
@ -53,6 +53,7 @@ class PaymentType extends StaticModel
|
|||||||
const DIRECT_DEBIT = 42;
|
const DIRECT_DEBIT = 42;
|
||||||
const BECS = 43;
|
const BECS = 43;
|
||||||
const ACSS = 44;
|
const ACSS = 44;
|
||||||
|
const INSTANT_BANK_PAY = 45;
|
||||||
|
|
||||||
public static function parseCardType($cardName)
|
public static function parseCardType($cardName)
|
||||||
{
|
{
|
||||||
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user