Commit a87da33a by Tobin

t : wallet payment issue

parent 5cf6017c
......@@ -529,7 +529,7 @@ class Api extends CI_Controller {
if(!empty($transaction_id) && !empty($last_id)){
$this->Api_model->update_payment($response,$transaction_id,$last_id,'1',$eventid);
$customData = $this->txnManager($eventid,array('tnx_id'=>$last_id));
$customData = $this->txnManager($eventid,array('tnx_id'=>$booking_id,'status'=>'1'));
}
if(!empty($booking_id)){
......@@ -575,8 +575,9 @@ class Api extends CI_Controller {
isset($data[1]) && !empty($data[1])){
$last_id = $data[1];
$eventid = $data[2];
$booking_id = $data[3];
$this->Api_model->update_payment($response,'',$last_id,'0',$eventid);
$customData = $this->txnManager($eventid,array('tnx_id'=>$last_id));
$customData = $this->txnManager($eventid,array('tnx_id'=>$booking_id,'status'=>'0'));
$sql = "SELECT BOK.event_id FROM transaction AS TX
INNER JOIN booking AS BOK ON (BOK.bookId=TX.booking_id)
......
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