Add new PaymentType

This commit is contained in:
Benjamin Beganović 2021-09-24 23:39:58 +02:00
parent 20fa79d51a
commit 33b6c05d41
2 changed files with 27 additions and 0 deletions

View File

@ -42,6 +42,7 @@ class PaymentType extends StaticModel
const SEPA = 29;
const GOCARDLESS = 30;
const CRYPTO = 31;
const BANCONTACT = 36;
public static function parseCardType($cardName)
{

View File

@ -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();
}
}