Add new payment type

This commit is contained in:
Benjamin Beganović 2021-10-07 18:01:14 +02:00
parent f28d1f2780
commit 87c6241947
2 changed files with 25 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class PaymentType extends StaticModel
const KBC = 35;
const BANCONTACT = 36;
const IDEAL = 37;
const HOSTED_PAGE = 38;
public static function parseCardType($cardName)
{

View File

@ -0,0 +1,24 @@
<?php
use App\Models\GatewayType;
use App\Models\PaymentType;
use Illuminate\Database\Migrations\Migration;
class AddHostedPageToPaymentTypes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$type = new PaymentType();
$type->id = 35;
$type->name = 'Hosted Page';
$type->gateway_type_id = GatewayType::HOSTED_PAGE;
$type->save();
}
}