public int Sign()
        {
            MisinputStruct misinputStruct = new MisinputStruct();
            ReturnMsg      returnMsg      = new ReturnMsg();

            misinputStruct.transtype = "00";
            int res = PaxMisPosInterface(ref misinputStruct, ref returnMsg);

            return(res);
        }
        public string Charge(string amout, string orderno)
        {
            if (string.IsNullOrEmpty(amout) || string.IsNullOrEmpty(orderno))
            {
                MessageBox.Show("参数有误!");
                return(null);
            }
            MisinputStruct misinputStruct = new MisinputStruct();

            misinputStruct.amout        = amout;
            misinputStruct.orderno      = orderno;
            misinputStruct.MerchantName = "昆山市不动产登记中心";
            misinputStruct.transtype    = "03";
            ReturnMsg returnMsg = new ReturnMsg();
            int       res       = PaxMisPosInterface(ref misinputStruct, ref returnMsg);

            return(ToJson(returnMsg));
        }
        public string Refund(string amout, string orderno, string oldtransdate, string oldHostSer)
        {
            if (string.IsNullOrEmpty(amout) || string.IsNullOrEmpty(orderno) ||
                string.IsNullOrEmpty(oldtransdate) || string.IsNullOrEmpty(oldHostSer))
            {
                MessageBox.Show("参数有误!");
                return(null);
            }
            MisinputStruct misinputStruct = new MisinputStruct();

            misinputStruct.amout        = amout;
            misinputStruct.orderno      = orderno;
            misinputStruct.oldtransdate = oldtransdate;
            misinputStruct.oldHostSer   = oldHostSer;
            misinputStruct.MerchantName = "昆山市不动产登记中心";
            misinputStruct.transtype    = "05";
            ReturnMsg returnMsg = new ReturnMsg();
            int       res       = PaxMisPosInterface(ref misinputStruct, ref returnMsg);

            return(ToJson(returnMsg));
        }
 extern static int PaxMisPosInterface(ref MisinputStruct misInputStruct, ref ReturnMsg returnMsg);