Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.razorpay.com: temporary failure in name resolution #9

Closed
anurag308 opened this issue Jul 11, 2018 · 3 comments
Closed

api.razorpay.com: temporary failure in name resolution #9

anurag308 opened this issue Jul 11, 2018 · 3 comments

Comments

@anurag308
Copy link

Hello All,
I am able to get payment id from razorpay front end, bu when I trying to capture the payment with java api I am getting this error:
api.razorpay.com: temporary failure in name resolution.
I am testing it from test mode and key. Do I need to test with Live credentials?
I googled but didn't find any help.
Please help.

Thanks in advance.

@captn3m0
Copy link
Contributor

Were you facing this intermittently? DNS resolution does not depend on live/test creds. Please check your network configuration.

@anurag308
Copy link
Author

I am facing this every time when I try to capture the payment.
We are behind proxy, so is there any different configuration required. I am using Ubuntu 16 version 64 bit machine. Following is my code snippet:

            RazorpayClient razorpay = new RazorpayClient(razorKey, razorSecret);
	try {
		JSONObject captureRequest = new JSONObject();		
		captureRequest.put("amount", 100); // Amount in paise
		Payment payment = razorpay.Payments.capture("pay_XXXXXXXXXX", captureRequest);
		/*In above line it throws to the catch block...*/
	} catch (RazorpayException e) {
		System.out.println(e.getMessage());
		return e;
	}

Please suggest a solution asap.
Thanks

@captn3m0
Copy link
Contributor

Closing this issue (on the sample app repo), as this will need further development as per razorpay/razorpay-php#79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants