网页视图操作获取结果返回 [英] Getting result back of webview operation

查看:118
本文介绍了网页视图操作获取结果返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中实现支付功能。对于这一点,我上的一个按钮,从我的应用程序点击启动新的意图(startActivityForResult)我的网站的付款页面。一旦付款成功的是,我想要的WebView将自动关闭并重新调用活动应该失败的结果获得成功。是否有可能,如果是,我怎么能做到这一点?

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?

推荐答案

我不完全了解你的使用情况。如果只是想接受信用卡或接受贝宝作为付款方式,请的https:/ /github.com/paypal/PayPal-Android-SDK 并检查出的 https://github.com/paypal/PayPal-Android-SDK/tree/master/SampleApp 。该SDK负责重定向到PayPal的你,让你不需要通过web视图,以实现自己。

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.

这篇关于网页视图操作获取结果返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆