payment check
This commit is contained in:
parent
88dad3c47e
commit
eaa23db9db
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue