payment check

This commit is contained in:
merdan 2020-01-09 17:32:12 +05:00
parent 88dad3c47e
commit eaa23db9db
2 changed files with 3 additions and 2 deletions

View File

@ -623,6 +623,7 @@ class EventCheckoutController extends Controller
$response = $this->gateway->getPaymentStatus($transaction_data[0]['orderId']);
//todo try catch for connection errors
if ($response->isSuccessfull()) {
session()->push('ticket_order_' . $event_id . '.transaction_id', $response->getPaymentReferenceId());
return $this->completeOrder($event_id, false);

View File

@ -485,8 +485,8 @@ ICSTemplate;
if(isset($start_date) && isset($end_date))
$query->where('start_date','<',$end_date)
->where('end_date','>',$start_date);
else
$query->where('end_date','>',Carbon::now(config('app.timezone')));
// else
// $query->where('end_date','>',Carbon::now(config('app.timezone')));
return $query->where('is_live',1)
->withCount(['images as image_url' => function($q){