-1

In my iPhone app using Browser I want to open a url for processing a payment. 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. After payment we are directed to a success page.

The question is, how do I return to my application after payment?

Justin Mathews
  • 512
  • 4
  • 18

1 Answers1

2

If you own the success page, then you could define your own URI scheme, that will automatically open your application on the device. This is how some links open the iTunes app, via an itms:// URI scheme.

A good way to deal with this can be seen here: Possible to handle your own http URL schemes in iOS?

Community
  • 1
  • 1
WDUK
  • 18,870
  • 3
  • 64
  • 72
  • 1
    You will need to somehow get the successful page (or a page it links to) to launch back into your app. Otherwise what you're asking for is not possible. – WDUK Jan 28 '13 at 12:11
  • Can we able to compare the url ,if success url go to application payment success page and otherwice show payment fail page – Justin Mathews Jan 28 '13 at 12:27
  • What would compare the URL? – WDUK Jan 28 '13 at 13:46