mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Add new PaymentType
This commit is contained in:
parent
993bc91970
commit
b3e81fd8f2
@ -42,6 +42,7 @@ class PaymentType extends StaticModel
|
||||
const SEPA = 29;
|
||||
const GOCARDLESS = 30;
|
||||
const CRYPTO = 31;
|
||||
const MOLLIE_BANK_TRANSFER = 34;
|
||||
|
||||
public static function parseCardType($cardName)
|
||||
{
|
||||
|
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use App\Models\GatewayType;
|
||||
use App\Models\PaymentType;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddMollieBankTransferToPaymentTypes extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$type = new PaymentType();
|
||||
|
||||
$type->id = 34;
|
||||
$type->name = 'Mollie Bank Transfer';
|
||||
$type->gateway_type_id = GatewayType::BANK_TRANSFER;
|
||||
|
||||
$type->save();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user