Paynow saying No address associated hostname in Java


#1

Hi guys,

I generated my Keys from paynow and I tried to make a payment using Java and I got the below error:

zw.co.paynow.exceptions.ConnectionException: Unable to resolve host "www.paynow.co.zw": No address associated with hostname

Please note that I have tried with different keys with the same code (Java) and it’s working. What could be the issue
, please help?


#2

are you able to access paynow.co.zw from a browser on the device you are using?


#3

Yes, I can access it from all my devices, please note that if I use different keys it works fine.


#4

When you say “different keys” do you mean it works with another Paynow integration ID?


#5

Exactly, it works fine with other Paynow integration ID and key.


#6

Hi @anesuphiri. Is it an android project? Also, when you make http requests to other URLs, can you connect successfully?


#7

Yes, it’s an Android project. Yes, I connect successfully.

If I change integration keys it works well. I don’t know if the keys I got have a problem.