File: /var/www/vhost/disk-apps/comfama.sports-crowd.com/database/seeds/AddNmiPaymentGatewaySeeder.php
<?php
use Illuminate\Database\Seeder;
use App\GatewayPayment;
class AddNmiPaymentGatewaySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->fillCulqiGateway();
}
public function fillCulqiGateway()
{
$obj = new GatewayPayment;
$obj->name = 'nmi';
$obj->description = 'NMI Sandbox';
$obj->user = '';
$obj->pass = '';
$obj->client_public = 'TauroFcTest';
$obj->client_secret = 'TauroFcTest';
$obj->api_key = 'yqd8K228JDnfbE67B78mYYGSq3nStXP7';
$obj->api_login = '';
$obj->merchant_id = '';
$obj->account_id = '';
$obj->language = 'es';
$obj->currency = 'USD';
$obj->gw_url_prd = 'https://secure.networkmerchants.com/api/v2/three-step';
$obj->gw_url_sandbox = 'https://secure.networkmerchants.com/api/v2/three-step';
$obj->active = true;
$obj->is_productive = false;
$obj->page_user_payment = '';
$obj->page_confirm_user = '';
$obj->page_response_for_gateway = '';
$obj->class = 'App\Http\Controllers\NmiController';
$obj->save();
$obj = new GatewayPayment;
$obj->name = 'nmi';
$obj->description = 'NMI producción';
$obj->user = '';
$obj->pass = '';
$obj->client_public = 'TAUROFC';
$obj->client_secret = 'TAUROFC';
$obj->api_key = 'n8Ty9amhAWwV4Z2H7rHFxNjka562d6hy';
$obj->api_login = '';
$obj->merchant_id = '';
$obj->account_id = '';
$obj->language = 'es';
$obj->currency = 'USD';
$obj->gw_url_prd = 'https://secure.networkmerchants.com/api/v2/three-step';
$obj->gw_url_sandbox = 'https://secure.networkmerchants.com/api/v2/three-step';
$obj->active = true;
$obj->is_productive = true;
$obj->page_user_payment = '';
$obj->page_confirm_user = '';
$obj->page_response_for_gateway = '';
$obj->class = 'App\Http\Controllers\NmiController';
$obj->save();
}
}