mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 01:34:35 -04:00
Add new payment type
This commit is contained in:
parent
f28d1f2780
commit
87c6241947
@ -46,6 +46,7 @@ class PaymentType extends StaticModel
|
|||||||
const KBC = 35;
|
const KBC = 35;
|
||||||
const BANCONTACT = 36;
|
const BANCONTACT = 36;
|
||||||
const IDEAL = 37;
|
const IDEAL = 37;
|
||||||
|
const HOSTED_PAGE = 38;
|
||||||
|
|
||||||
public static function parseCardType($cardName)
|
public static function parseCardType($cardName)
|
||||||
{
|
{
|
||||||
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user