如何从我的iOS应用程序在PayPal iOS应用程序中打开特定的PayPal链接 [英] How to open a specific PayPal link in the PayPal iOS app from my iOS app

查看:263
本文介绍了如何从我的iOS应用程序在PayPal iOS应用程序中打开特定的PayPal链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有某些参数的http PayPal URL,该参数可导致某些商品的付款页面.
例如. https ://www.paypal.com/cgi-bin/webscr?cmd = _xclick& business=foobar@fakeserver.com& item_name = Some + item& amount = 2.50 指向该带有参数的虚拟项目的页面item_name =某些商品"和金额="2.50".

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&business=foobar@fakeserver.com&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".

我需要做的就是在iOS PayPal应用程序中打开该页面-从我的iOS应用程序中.就像您使用"fb://page?id=%@"在Facebook应用程序中打开Facebook页面一样.我不需要在我的应用程序中实现任何PayPal功能或从中获取任何数据,因此我认为我不需要PayPal iOS SDK或任何其他API.

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.

贝宝(PayPal)应用程序URL方案为 paypal://xxx ,但我不知道它的含义.我一直在搜索一整天,没有任何结果.我所知道的是
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"paypal://anything"]]
打开PayPal应用,但仅显示主视图/以前的视图.我不知道如何打开任何特定页面.

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.

推荐答案

从PayPal离开.

@ user282378,应使用其https:// URL方案按原样打开该URL.也就是说,该网址将在Safari中打开.

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

PayPal应用程序确实支持paypal:// URL方案.但是,此URL方案仅用于某些有限的PayPal使用.这不是供非PayPal应用使用的通用方案.

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.

这篇关于如何从我的iOS应用程序在PayPal iOS应用程序中打开特定的PayPal链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆