CCAvenue Android Integration

好久不见. 提交于 2019-12-21 05:15:21

问题


I am integrating CCAvenue to my android app and I am doing Non-seamless integration.

My merchant server is php and I am making my httppost to the GetRSA.php file kept in my merchant server.

The code I am using is as below

 List<NameValuePair> httpParams = new ArrayList<NameValuePair>();
 httpParams.add(new BasicNameValuePair("access_code", intent.getStringExtra("access_code")));
 httpParams.add(new BasicNameValuePair("order_id", intent.getStringExtra("order_id")));

 String vResponse = sh.makeServiceCall(intent.getStringExtra(RSA_KEY_URL), ServiceHandler.POST, httpParams);

The access code, order id and the RSA url is passed from the previous activity and the ACESS_CODE I am using is the one provided by the CCAvenue and the RSA_KEY_URL is the path where I kept the GetRSA.php in the merchant server.

But the response I am getting is "!ERROR!Caller IP not registered/Merchant Not found."

What can be wrong?


回答1:


It is because at ccavenue there are server to server call, so they get a hit from our server's outgoing Static IP.. As they have validations at their end..you get "!ERROR!Caller IP not registered/Merchant Not found."




回答2:


Kindly make sure that your Public/Outgoing IP has been whitelisted on CCAvenue's end.Also Make sure you are using the proper Access Code,Merchant ID and working key provided by CCAvenue.See the Link

CCAvenue Integration in Android



来源:https://stackoverflow.com/questions/31923963/ccavenue-android-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!