Commit b7dc2014 by Tobin

t : status for booking summary api

parent 621b272c
......@@ -331,10 +331,10 @@ class Api extends CI_Controller {
$res = $this->Api_model->payNow($payData);
if($res['status']==1){
$this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id,$res['custData'],$cardData);
$this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id,$res['custData'],$cardData);
}
else{
redirect($redUrl.'failure?event_id='.$eventid);
redirect($redUrl.'failure?event_id='.$eventid);
}
}
......
......@@ -854,10 +854,12 @@ class Webservice_model extends CI_Model {
$sql = "SELECT booking.qrcode,events.event_id,events.venue_id,event_date_time.date,
events.has_payment AS is_payment_required,booking.bookId AS ticket_id,
event_gallery.media_url AS event_image,booking.amount AS total_rate,
event_date_time.time,venue.location AS address,customer.name AS profile_name,
event_date_time.time,venue.location AS address,
customer.name AS profile_name,
venue.location_lng AS longitude,venue.location_lat AS latitude,
booking.no_of_ticket AS ticket_count,customer.profile_image AS profile_photo,
customer.profile_image_qr
booking.no_of_ticket AS ticket_count,
customer.profile_image AS profile_photo,
customer.profile_image_qr,booking.status
FROM events
LEFT JOIN event_gallery ON events.event_id=event_gallery.event_id AND
event_gallery.media_type=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment