In Android Instamojo payment activity fails even after passing correct Order ID

460 Views Asked by At

In Android Instamojo payment screen fails to build even after passing the correct order ID. The Order IDs generate works in the web URL but when I try to initialize the inbuilt Payment Activity of Instamojo, it instantly calls the on onInitiatePaymentFailure() with the error message "Error in getting order data." I am sure that I followed all the step mentioned in the read me about how to integrate the API correctly. (The app even has got all required permissions)

Error: { "success": false, "message": "Not found." }

2

There are 2 best solutions below

3
n shiva prasad reddy On

Issue is Solved.

Error due to the invalid order ID.

0
rushab On

I was also facing same problem

I have also changed all test url to live url but then also i was facing this problem.

The problem was that I was using Testing Environment in android

I changed this line

Instamojo.getInstance().initialize(this, Instamojo.Environment.TEST);

to

Instamojo.getInstance().initialize(this, Instamojo.Environment.PRODUCTION);