4
votes

I have an http PayPal URL with some parameters that leads to a payment page for some item.
E.g. https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=Some+item&amount=2.50 leads to the page for this dummy item with parameters item_name="Some item" and amount="2.50".

All I need to do is open that page in the iOS PayPal app - from my iOS app. Just like you would open a Facebook page in the Facebook app with "fb://page?id=%@". I don't need to implement any PayPal functions in my app or get any data back from it, so I don't think I need the PayPal iOS SDK or any other API.

The PayPal app URL scheme is paypal://xxx, but I don't know what goes after it. I've been searching for a whole day now with no results whatsoever. All I know is that
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"paypal://anything"]]
opens the PayPal app, but it just shows the home/previous view. I have no idea how to open any specific page.

1

1 Answers

3
votes

Dave from PayPal here.

@user282378 you should open that URL just as it is, with its https:// URL scheme. I.e., the URL will open in Safari.

The PayPal app does indeed support a paypal:// URL scheme. However this URL scheme is intended only for certain limited PayPal usage. It is not a general-purpose scheme for use by non-PayPal apps.