Issue while accessingtoken via getApi in live websiteI have contacted several times about this issue support@instamojo.com but nobody even bothered to reply. So I am posting my issue here in details.
Programming used - ASP.NET MVC (C#).
Website - www.caddesksilchar.com
I have used instamojoAPI in my localhost environment to test payment in the website i was developing for caddesksilchar and when i found that everything was working fine I published it in the above mentioned website.
Suddenly i encountered an error.
** Lets make it short about the error -
Everything was running fine in localhost environment but when i published the website the error occured. I was unable to recreate the error in my localhost environment at first making it very hard for me to debug the error.
** string clientid = "SECRET ID";
** string clientsecret = "SECRET ID";
** string endpoint = "https://api.instamojo.com/v2/";;
** string authendpoint = "https://www.instamojo.com/oauth2/token/";
** Instamojo objClass = InstamojoImplementation.getApi(clientid, clientsecret, endpoint, authendpoint);
After some long manual testing I found the source of the error. The error is in this piece of code -
** Instamojo objClass = InstamojoImplementation.getApi(clientid, clientsecret, endpoint, authendpoint);
But Why the code works in my localhost and not in live website? So i did this
I turned off the internet in my localhost machine and ran only this part -
** Instamojo objClass = InstamojoImplementation.getApi(clientid, clientsecret);
And the error occured in my localhost environment also. So according to my observation ** getApi ** tries to connect to a service of Instamojo to get token of some kind. If i am not wrong. That means there is some issue with ports on live server that i am using.
I have contacted the support staff of my SERVER ADMIN (who gave me instant support unlike instamojo) and told them to open port 443 as mentioned in this link -
** https://support.instamojo.com/hc/en-us/articles/214079929-cURL-Error-Number-7
They opened the port and still it doesnot work and they told me to get in touch with instamojo. So now everything rests on your reply. kindly tell me what to do now. I need instant support. My client is frustrated and if i dont get an instant support from you guys I will not bother a second to shift to another client because it has been many days i tried to contact you guys but nobody bothered to reply me.
PS - I have build the C# wrapper and created a dll and used it as reference in my website. I have also tried to republish the website all over again. Nothing seems to work. Kindly help me ASAP.
Posted in
General
by
Arindam Chakraborty