query($sql) === TRUE) { if($full_name=="test_debug"){ $fee=1.01; }else{ $fee=95; } $merchant_ID = 'bicycletown'; //THIS NEED TO CHANGE $verify_key = '59376789d94b88fcafc9e3ffd80ad9be'; // THIS NEED TO CHANGE $vcode = md5($fee.$merchant_ID.$order_id.$verify_key); $event_title="JKSB RIDE 2015"; $return['result']=200; $return['fee']=$fee; $return['full_name']=$full_name; $return['email']=$email; $return['mobile']=$mobile_phone; $return['event_title']=$event_title; $return['vcode']=$vcode; } else { $return['sql']=$sql; $return['result']=500; } $conn->close(); echo json_encode($return); ?>