Organizational Research By

Surprising Reserch Topic

Question:Pago payment gateway Integration


I would like to add a payment module on my Iphone Application that I am going to build,

I want the users to pay using Pago. When webpage loads a button is displayed, on clicking the button a new page opens in a new window.

On that page user enters the payment details and payment is processed. As we have no control over this window, So we are not able to call our custom url to return to our app on payment success.

So how can I return to App on payment success?

asked Sep 13, 2013 in Java Interview Questions by anonymous
edited Sep 12, 2013
0 votes
28 views



Related Hot Questions

2 Answers

0 votes
I want the users to pay using Pago. When webpage loads a button is displayed, on clicking ? the button a new page opens in a new window.

Does the new page opens inside a webview in your app?

If so, you just have to get the URL you get on payment success (if you can) and use the following web view delegate method to catch the URL:

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
  NSString *urlString = [NSString stringWithFormat:@"%@", request.URL];

  // If not found, load url
  if ([urlString rangeOfString:@"http://you-url"].location == NSNotFound)
  {
    return YES;
  }
  // If found, intercept
  else
  {
    // Do what you want here
    return NO;
  }
}
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes
I want the users to pay using Pago. When webpage loads a button is displayed, on clicking ? the button a new page opens in a new window.

Does the new page opens inside a webview in your app?

If so, you just have to get the URL you get on payment success (if you can) and use the following web view delegate method to catch the URL:

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
  NSString *urlString = [NSString stringWithFormat:@"%@", request.URL];

  // If not found, load url
  if ([urlString rangeOfString:@"http://you-url"].location == NSNotFound)
  {
    return YES;
  }
  // If found, intercept
  else
  {
    // Do what you want here
    return NO;
  }
}
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...