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

Add Zelle Payment Type

This commit is contained in:
David Bomba 2021-08-06 10:07:54 +10:00
parent fdf80a4cb7
commit 722bf40bf8
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,36 @@
<?php
use App\Models\PaymentType;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddZellePaymentType extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$pt = PaymentType::where('name', 'Zelle')->first();
if(!$pt){
$payment_type = new PaymentType();
$payment_type->name = 'Zelle';
$payment_type->save();
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View File

@ -70,6 +70,7 @@ class PaymentTypesSeeder extends Seeder
['name' => 'GoCardless', 'gateway_type_id' => self::GATEWAY_TYPE_GOCARDLESS],
['name' => 'Crypto', 'gateway_type_id' => self::GATEWAY_TYPE_CRYPTO],
['name' => 'Credit', 'gateway_type_id' => self::GATEWAY_TYPE_CREDIT],
['name' => 'Zelle'],
];
$x = 1;