payment api env

This commit is contained in:
merdan 2020-01-21 17:31:05 +05:00
parent 0e0f408a85
commit 43db12b739
4 changed files with 12 additions and 6 deletions

View File

@ -34,3 +34,9 @@ GOOGLE_MAPS_GEOCODING_KEY=
TWITTER_WIDGET_ID= TWITTER_WIDGET_ID=
LOG=errorlog LOG=errorlog
BOOKING_FEE=0.1
PAYMENT_API_URI=
PAYMENT_API_USER=
PAYMENT_API_PASSWORD=

View File

@ -41,7 +41,7 @@ return [
'ticket_status_on_sale' => 4, 'ticket_status_on_sale' => 4,
'ticket_status_off_sale' => 5, 'ticket_status_off_sale' => 5,
'ticket_booking_fee_fixed' => 0.1, 'ticket_booking_fee_fixed' => env('BOOKING_FEE',0.1),
'ticket_booking_fee_percentage' => 0, 'ticket_booking_fee_percentage' => 0,
/* Order statuses */ /* Order statuses */

View File

@ -8,16 +8,16 @@
return [ return [
'card' =>[ 'card' =>[
'config' => [ 'config' => [
'base_uri' => 'https://mpi.gov.tm/payment/rest/', 'base_uri' => env('PAYMENT_API_URI'),
'timeout' => 10, 'timeout' => 10,
'connect_timeout' => 10, 'connect_timeout' => 10,
'verify' => true, 'verify' => true,
'http_errors' => false, 'http_errors' => false,
], ],
'params' => [ 'params' => [
'userName' => '101131003020', 'userName' => env('PAYMENT_API_USER'),
'password' => 'Pr2d3gW1dh15', 'password' => env('PAYMENT_API_PASSWORD'),
'language' => 'ru', 'language' => 'ru',
] ]
] ]
]; ];

View File

@ -262,7 +262,7 @@ class CreateUsersTable extends Migration
Schema::create('tickets', function ($t) { Schema::create('tickets', function ($t) {
$t->increments('id'); $t->increments('id');
$t->nullableTimestamps(); $t->nullableTimestamps();
$t->softDeletes(); $t->softDeletes();
$t->unsignedInteger('edited_by_user_id')->nullable(); $t->unsignedInteger('edited_by_user_id')->nullable();