OGeek|极客世界-中国程序员成长平台

标题: ios - 当我从 iOS 10 的 BrainTree 支付页面点击 Paypal 时打开空白页面 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 17:53
标题: ios - 当我从 iOS 10 的 BrainTree 支付页面点击 Paypal 时打开空白页面

我已集成 BRAINTREE SDK进入我的应用程序。我也遵循 PayPal/Client-Side Implementation 的所有步骤.

它在 iOS 9 中运行良好。但 PAYPAL 功能不仅在 iOS 10 中运行。当我从下面的第一个屏幕点击 PAYPAL 按钮时,已打开空白页面,如下图 2 所示。

enter image description here

enter image description here

但是当我想在 iOS 9 中使用 PAYPAL 付款时,它会重定向以下页面,如下图所示,但在 iOS 10 设备中不起作用。

enter image description here

我不确定为什么这仅适用于 iOS 10。

我还添加了 this issue on GitHub .

任何帮助将不胜感激。



Best Answer-推荐答案


终于找到了解决办法。这是由于在我的应用中实现的 UITabBarController 造成的。

所以早些时候我展示了支付屏幕(BTDropInViewController),如下所示:-

[self presentViewController:navigationController animated:YES completion:nil];

所以现在我使用这个而不是上面的行,

[APPDELEGATE.navigationController presentViewController:navigationController animated:YES completion:nil];

//#define APPDELEGATE ((AppDelegate *)[[UIApplication sharedApplication] delegate]) //Global object of AppDelegate
//@property (strong, nonatomic) UINavigationController *navigationController; //which is declared into AppDelegate.h

希望,这就是您要找的。任何问题都可以回复我。

关于ios - 当我从 iOS 10 的 BrainTree 支付页面点击 Paypal 时打开空白页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40153687/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4