mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 01:04:43 -04:00
Add Zelle Payment Type
This commit is contained in:
parent
fdf80a4cb7
commit
722bf40bf8
@ -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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
@ -70,6 +70,7 @@ class PaymentTypesSeeder extends Seeder
|
|||||||
['name' => 'GoCardless', 'gateway_type_id' => self::GATEWAY_TYPE_GOCARDLESS],
|
['name' => 'GoCardless', 'gateway_type_id' => self::GATEWAY_TYPE_GOCARDLESS],
|
||||||
['name' => 'Crypto', 'gateway_type_id' => self::GATEWAY_TYPE_CRYPTO],
|
['name' => 'Crypto', 'gateway_type_id' => self::GATEWAY_TYPE_CRYPTO],
|
||||||
['name' => 'Credit', 'gateway_type_id' => self::GATEWAY_TYPE_CREDIT],
|
['name' => 'Credit', 'gateway_type_id' => self::GATEWAY_TYPE_CREDIT],
|
||||||
|
['name' => 'Zelle'],
|
||||||
];
|
];
|
||||||
|
|
||||||
$x = 1;
|
$x = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user