ios - load chain payment url to web view -


In my application, I want to use the chain payment because PayPal does not support the SDK chain payment. At the back end, they are giving me a URL, which I have to load in the web view. This URL series is of payment, the user will enter PayPal from that URL and will make the transaction. But after the transaction is completed I have to close that web view. How is that transaction detected in the web view complete?

"itemprop =" text ">

You need to set the controller as a UIWebViewDelegate and apply this method:

  - (zero) webViewDidFinishLoad: (UIWebView *) WebView {NSString * url = self.webView.request.URL.absoluteString; If you ([url isEqualToString: @ "URL of your confirmation page"]) {// dismiss view controller or go to a pretty confirmation view}}   

Of course, The view is the property on your view controller which indicates UIWebView.

Comments

Popular posts from this blog

c# - Roxy file manager in MVC doesn't accept session path -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

java - Ajax call to jsp and jsp redirecting to further jsp -