Add new PaymentType
This commit is contained in:
parent
20fa79d51a
commit
33b6c05d41
2 changed files with 27 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Reference in a new issue