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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -