mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 04:54:34 -04:00
Add new PaymentType
This commit is contained in:
parent
20fa79d51a
commit
33b6c05d41
@ -42,6 +42,7 @@ class PaymentType extends StaticModel
|
|||||||
const SEPA = 29;
|
const SEPA = 29;
|
||||||
const GOCARDLESS = 30;
|
const GOCARDLESS = 30;
|
||||||
const CRYPTO = 31;
|
const CRYPTO = 31;
|
||||||
|
const BANCONTACT = 36;
|
||||||
|
|
||||||
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 AddBancontactToPaymentTypes extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
$type = new PaymentType();
|
||||||
|
|
||||||
|
$type->id = 35;
|
||||||
|
$type->name = 'Bancontact';
|
||||||
|
$type->gateway_type_id = GatewayType::BANCONTACT;
|
||||||
|
|
||||||
|
$type->save();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user