This is the Error Message that is showing I/chromium: [INFO:CONSOLE(1)] "Uncaught TypeError: window.getDeviceDetails is not a function", source: https://api.razorpay.com/v1/checkout/public?version=1.5.16&library=checkoutjs&platform=android (1)
-
is your razorpay key is valid? – Kokila Feb 01 '23 at 05:20
-
Hi Aashraya, Did u check this? https://stackoverflow.com/questions/63546926/why-do-i-get-this-error-using-razorpay-with-flutter-uncaught-typeerrorwindow – Aman khan Roohaani Aug 19 '23 at 19:04
1 Answers
I thing flutter WebView in which Razorpay is running doesn't have access to the getDeviceDetails function. This could be due to a number of reasons:
The function is not defined: Ensure that the getDeviceDetails function is properly defined in your code.
The function is not in scope: If the function is defined, make sure it's in the correct scope. JavaScript functions can only be called from within the scope they're defined in.
The WebView settings: The settings for the WebView might be preventing the function from being called. You might need to enable JavaScript or adjust other settings.
The Razorpay library: There might be an issue with the version of the Razorpay library you're using. Try updating to the latest version or down grade some version.

- 51
- 7