File: /var/www/vhost/disk-apps/comfama.sports-crowd.com/database/seeds/AddCulqiPaymentGatewaySeeder.php
<?php
use Illuminate\Database\Seeder;
use App\GatewayPayment;
class AddCulqiPaymentGatewaySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->fillCulqiGateway();
}
public function fillCulqiGateway()
{
$obj = new GatewayPayment;
$obj->name = 'Culqi_sandbox';
$obj->description = 'Sandbox Culqi, doc: https://docs.culqi.com/, CLUB SPORTING CRISTAL APP, ID: 54351';
$obj->user = '';
$obj->pass = '';
$obj->client_public = 'pk_test_mViq27IrjrzUBicA';
$obj->client_secret = 'sk_test_OmLBFgRUAXxhwjxC';
$obj->api_key = '';
$obj->api_login = '';
$obj->merchant_id = '';
$obj->account_id = '';
$obj->language = 'es';
$obj->currency = 'PEN';
$obj->gw_url_prd = 'https://api.culqi.com/v2';
$obj->gw_url_sandbox = 'https://api.culqi.com/v2';
$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\CulqiController';
$obj->save();
$obj = new GatewayPayment;
$obj->name = 'Culqi_prd';
$obj->description = 'PRD Culqi, doc: https://docs.culqi.com/';
$obj->user = '';
$obj->pass = '';
$obj->client_public = '';
$obj->api_key = '';
$obj->api_login = '';
$obj->merchant_id = '';
$obj->account_id = '';
$obj->language = 'es';
$obj->currency = 'PEN';
$obj->gw_url_prd = 'https://api.culqi.com/v2';
$obj->gw_url_sandbox = 'https://api.culqi.com/v2';
$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\CulqiController';
$obj->save();
}
}