Beispiel #1
0
        private static PayConnectService.Credentials GetCredentials(Program prog)
        {
            PayConnectService.Credentials cred = new OpenDental.PayConnectService.Credentials();
            ArrayList props = ProgramProperties.GetForProgram(prog.ProgramNum);

            cred.Username = "";
            cred.Password = "";
            for (int i = 0; i < props.Count; i++)
            {
                ProgramProperty prop = (ProgramProperty)props[i];
                if (prop.PropertyDesc == "Username")
                {
                    cred.Username = prop.PropertyValue;
                }
                else if (prop.PropertyDesc == "Password")
                {
                    cred.Password = prop.PropertyValue;
                }
            }
            cred.Client    = "OpenDental2";
            cred.ServiceID = "DCI Web Service ID: 006328";          //Production
            //cred.ServiceID="DCI Web Service ID: 002778";//Testing
            cred.version = "0310";
            return(cred);
        }
Beispiel #2
0
		private static PayConnectService.Credentials GetCredentials(Program prog){
			PayConnectService.Credentials cred=new OpenDental.PayConnectService.Credentials();
			ArrayList props=ProgramProperties.GetForProgram(prog.ProgramNum);
			cred.Username="";
			cred.Password="";
			for(int i=0;i<props.Count;i++){
				ProgramProperty prop=(ProgramProperty)props[i];
				if(prop.PropertyDesc=="Username"){
					cred.Username=prop.PropertyValue;
				}else if(prop.PropertyDesc=="Password"){
					cred.Password=prop.PropertyValue;
				}
			}
			cred.Client="OpenDental2";
			cred.ServiceID="DCI Web Service ID: 006328";//Production
			//cred.ServiceID="DCI Web Service ID: 002778";//Testing
			cred.version="0310";
			return cred;
		}