예제 #1
0
 function ChangMPin_()
 {
     $Ojb = new ChangeResponse();
     $ObjTriptDes = new TriptDes($this->m_SessionID);
     try {
         $OldMpin = $ObjTriptDes->EncrypTriptDes($this->m_OLD_OLD_MPIN);
         $NewMpin = $ObjTriptDes->EncrypTriptDes($this->m_NEW_MPIN);
     } catch (Exception $ex) {
     }
     //$soapClient = new Soapclient("http://192.168.0.85:10001/CardChargingGW_0108/services/Services?wsdl");
     try {
         $result = $this->soapClient->changeMPIN($this->m_TransID, $this->m_UserName, $this->m_PartnerID, $OldMpin, $NewMpin, md5($this->m_SessionID));
         // goi ham login de lay session id du lieu tra ve la mot mang voi cac thong tin message, sessionid,status,transid
     } catch (Exception $ex) {
     }
     $Obj->m_Status = $result->status;
     $Obj->m_Message = $result->message;
     return $Obj;
 }
예제 #2
0
 function getTransactionStatus_()
 {
     $Ojb = new ChangeResponse();
     $ObjTriptDes = new TriptDes($this->m_SessionID);
     try {
         $tranId = $ObjTriptDes->EncrypTriptDes($this->{$m_TransID});
     } catch (Exception $ex) {
     }
     try {
         $result = $this->soapClient->getTransactionStatus($this->m_TransID, $this->m_UserName, $this->m_PartnerID, md5($this->m_SessionID));
         // goi ham login de lay session id du lieu tra ve la mot mang voi cac thong tin message, sessionid,status,transid
     } catch (Exception $ex) {
     }
     $Obj->m_Status = $result->status;
     $Obj->m_Message = $result->message;
     return $Obj;
 }