-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mixed Content issue of payment using DANA #100
Comments
Hi Cherry, Thank you for reaching us out. May I ask you, does this error appear intermittently or constantly? Also, could you share the external id that u used to generate that checkout URL with us? Thank you. Cheers, |
Hi Nicholas, Thank you for your prompt reply. 1-117-12800 Here is the full json data: We also tried to implement: But, the page in webview remains error. Many Thanks. Cheers, |
Hi Cherry, Sorry, may i know why is the app trying to render this endpoint 'https://m.sandbox.dana.id/m/portal/error?errorCode=network&refer=cashierOrder&bizNo=20200923111212800110166922300021127'? And maybe you can try to generate a new checkout URL and open it in your browser to see whether it works? Cheers, |
Hi Nicholas, The code is opening checkout_url using webview, and the error occured while accessing the page. It seems that the problem while loading a page contains mixed http and https, while the new SDK allows only secure connection. Opening the url in mobile browser or PC doesn't have any problem at all. Many thanks. Cheers, |
Hi Cherry, Oh so this is purely Android's problem, CMIIW? What's the API version are you targetting in your application? Can you try another solution from this based-on the API targetting https://stackoverflow.com/questions/32155634/android-webview-not-loading-mixed-content, for example try to add Hopefully this can help to fix the problem. Thank you. Cheers, |
Hi Nicholas, Target SDK is set to 29. We have already tried the solution. We also tried webView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); with no success. I think the problem is relevant to the given error http://mas-log-sit.58cloud.alipay.net/loggw/webLog.do? in Dana java script. Many thanks. Cheers, |
Hi Cherry, I am so sorry but we couldn't help you for this because the checkout URL is from Dana. So we do not have control over this and are unable to change it into https. The best suggestion that we can come up to address this problem is by finding a way to allow the Android WebView to be able to open the mixed/http. I hope that these links be useful for you:
I hope that you can fix your problem as soon as possible. Thank you, |
Hello, yes we already followed and did the instructions. We would like to contact DANA support, but we are not their customer, and using Xendit API. Many thanks. Cheers, |
Hi Cherry, Sure! We have raised this issue to DANA. Please wait for the further update. Thank you, |
Hi Nicholas, Alright, many thanks! Following is a document which may can help: Many thanks. Cheers, |
Hi, we got another problem with DANA payment.
Opening the checkout_url in Android's webview has a mixed content issue.
"Mixed Content: The page at 'https://m.sandbox.dana.id/m/portal/error?errorCode=network&refer=cashierOrder&bizNo=20200923111212800110166922300021127' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://mas-log-sit.58cloud.alipay.net/loggw/webLog.do'. This content should also be served over HTTPS.", source: https://m.sandbox.dana.id/m/portal/1.66.0/app.de976a31d80522ad6685.js
Also, instead of opening the correct url, it will be redirect to a page with error message:
"The network connection is unstable. Please try again later."
Error code: network
How should we solve this issue?
Many thanks before.
Cheers,
Cherry
The text was updated successfully, but these errors were encountered: