ThePayDesk certificate is trusted by Comodo Trusted Network. In Java 1.3.x and older the standard java cartcerts file doesn't include Comodo Trusted Network root certificates and therefore Parallels H-Sphere returns 'Connect error, untrusted server cert chain' when trying to connect to the merchant gateway. Therefore Comodo Trusted Network certificates should be imported into cacerts file.
So, if you have Java 1.3 and older, you have the following solutions:
A. If you have got the default java cacerts file and you have never changed it, you can simply replace it with the cacerts file offered by Parallels:
/usr/java/<java home>/jre/lib/security/cacerts
B. If you need to keep your cacerts file, you can fix this problem using the keytool feature available in the standard Java installation:
wget http://download.hsphere.parallels.com/shiv/files/merchants/GTECyberTrustRoot.cer
chmod 666 /usr/java/jdk1.3.1/jre/lib/security/cacerts
su -l cpanel
cd /usr/java/jdk1.3.1/jre/lib/security/
keytool -import -alias root -file GTECyberTrustRoot.cer -keystore cacerts
chmod 444 /usr/java/jdk1.3.1/jre/lib/security/cacerts
C. Upgrade Java to 1.4 by following our documentation in Sysadmin Guide.
Note: If your certificate is already imported into cacerts, but Java still generates 'Connect error, untrusted server cert chain', please check the connection to your payment server from your control panel server by running the following command from the control panel server console to check connection:telnet [server.name] [port]