Reputation: 217
Im using instamojo SDK "com.instamojo:android-sdk:3.0.0". Currently using TEST environment for payment. Only Netbanking is working for TEST. But the problem here is, as soon as the payment via Netbanking is completed, the SDK redirects to the redirect URL but not closing the transaction window, thus the "onInstamojoPaymentComplete()" function is not called.
Here the above screen is displayed as soon as the payment is done via netbanking(TEST). But the Payment Activity is not closed even after the payment is completed. When I click on the back button, there a dialog pops up showing do you want to cancel the transaction? . If i press Yes then, the "onPaymentCancelled()" is triggered. What might be wrong Here ?
Upvotes: 1
Views: 1346
Reputation: 31
need to add redirect_url as 'https://test.instamojo.com/integrations/android/redirect/'
in the request payment api where we are sending name, amount, currency, etc
Upvotes: 3
Reputation: 31
I faced similar problem and fixed it by configuring
redirect_url value to 'https://test.instamojo.com/integrations/android/redirect/'
Because the sdk will initiate the callback() once it reaches it's redirect url.
Upvotes: 3