我似乎无法从委托(delegate)方法中检索 payKey 字符串:
- (void)paymentSuccessWithKey:(NSString *)payKey andStatus:(PayPalPaymentStatus)paymentStatus
在委托(delegate)方法处设置断点时,不会从委托(delegate) View Controller 调用任何委托(delegate)方法。
我已经使用 SimplePayment 方法在 PayPal 提供的 DemoApp 上检查了这一点,并在 FourButtonVIewController 中设置了断点以及我自己的集成了 PayPal 的应用程序。
这已在运行 iOS6 和 iOS5 的设备以及运行 iOS6 的模拟器上进行了检查。
任何人都可以阐明这一点,因为我似乎无法确定它吗?
提前致谢!
最佳答案
已解决。
我错误地初始化了 PayPal session ,因此没有触发回调。
PayPal 自己的应用程序的问题是我在错误的 View Controller 上为正确的委托(delegate)设置了断点 - PayPal 包括 2 个演示应用程序,SimpleDemo 和 InteractiveDemo。我正在运行交互式演示,但断点在 SimpleDemo 上。傻我 ;)
感谢所有看过的人!!
关于iphone - 无法获取payKey ios PayPalMPL SDK 1.6.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12882132/