iphone - 无法获取payKey ios PayPalMPL SDK 1.6.0

标签 iphone ios paypal

我似乎无法从委托(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/

相关文章:

iphone - naturalSize 从 AVURLAsset 返回错误的方向

ios - Tableview 剪切了最后一行但返回后正确

ios - iPad 引导访问

Paypal 经常性付款滥用

PayPal webhook 没有收到任何事件

python - 删除(或预填)PayPal Express Checkout 的地址详细信息

iphone - CGAffineTransformMakeRotation 围绕外部点

iphone - 垂直对齐 CATextLayer 中的文本?

ios - Collection View 完成处理程序的 PerformBatchUpdates 未执行

android - 我可以构建一个在所有手机上都兼容的 Web 应用程序吗?