Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PayUMoney in Android WebView showing blank screen

I am trying to integrate my Android app with PayUMoney.

If I don't put in -

myWebView.setWebViewClient(new WebViewClient());

its opening in the browser and working fine. But if I do, the WebView shows a loading sort of activity and then the whole thing goes blank.

And also if I create some error in the data, the error page from PayUMoney loads in the WebView without any problem.

like image 986
Nandini Bhaduri Avatar asked Nov 22 '25 10:11

Nandini Bhaduri


2 Answers

Thanks to PayUMoney Tech Support. I had to add -

myWebView.getSettings().setDomStorageEnabled(true);

now it is working.

like image 127
Nandini Bhaduri Avatar answered Nov 25 '25 03:11

Nandini Bhaduri


Change your URL with this and try again.

String PAYMENT_URL = "https://test.payu.in/_payment";        
like image 41
Prateek Avatar answered Nov 25 '25 03:11

Prateek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!