mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
<?php
|
|
|
|
use App\Models\Gateway;
|
|
use App\Models\GatewayType;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class FortePaymentGateway extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
$fields = new \stdClass;
|
|
$fields->testMode = false;
|
|
$fields->apiLoginId = "";
|
|
$fields->apiAccessId = "";
|
|
$fields->secureKey = "";
|
|
$fields->authOrganizationId = "";
|
|
$fields->organizationId = "";
|
|
$fields->locationId = "";
|
|
|
|
$forte = new Gateway;
|
|
$forte->id = 59;
|
|
$forte->name = 'Forte';
|
|
$forte->key = 'kivcvjexxvdiyqtj3mju5d6yhpeht2xs';
|
|
$forte->provider = 'Forte';
|
|
$forte->is_offsite = true;
|
|
$forte->fields = \json_encode($fields);
|
|
$forte->visible = 1;
|
|
$forte->site_url = 'https://www.forte.net/';
|
|
$forte->default_gateway_type_id = GatewayType::CREDIT_CARD;
|
|
$forte->save();
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
}
|