Add INSTANT_BANK_PAY To PaymentType
This commit is contained in:
parent
619803f2be
commit
a844553cf3
2 changed files with 27 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ class PaymentType extends StaticModel
|
|||
const DIRECT_DEBIT = 42;
|
||||
const BECS = 43;
|
||||
const ACSS = 44;
|
||||
const INSTANT_BANK_PAY = 45;
|
||||
|
||||
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 AddInstantBankTransfer extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
$type = new PaymentType();
|
||||
|
||||
$type->id = PaymentType::INSTANT_BANK_PAY;
|
||||
$type->name = 'Instant Bank Pay';
|
||||
$type->gateway_type_id = GatewayType::INSTANT_BANK_PAY;
|
||||
|
||||
$type->save();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue