Getting result back of webview operation

狂风中的少年 提交于 2020-01-05 12:14:45

问题


I am implementing payment functionality in my application. For that, I am launching my website's payment page with new intent (startActivityForResult) on a click of a button from my application. Once the payment is succeed, I want that webview to be closed automatically and should get succeed of failed result back in calling activity. Is it possible and if yes, how can I achieve this?


回答1:


I am not completely aware of your use case. If are are just trying to accept credit cards or accept paypal as a form of payment, check out https://github.com/paypal/PayPal-Android-SDK and check out the https://github.com/paypal/PayPal-Android-SDK/tree/master/SampleApp. The sdk takes care of redirection to PayPal for you so that you do not need to implement that yourself via an webview.



来源:https://stackoverflow.com/questions/24299417/getting-result-back-of-webview-operation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!