【问题标题】:Blank page open when I tap on Paypal from BrainTree payment page in iOS 10当我从 iOS 10 的 BrainTree 支付页面点击 Paypal 时打开空白页面
【发布时间】:2017-03-02 09:50:12
【问题描述】:

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

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

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

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

我还添加了this issue on GitHub

任何帮助将不胜感激。

【问题讨论】:

  • 我在 iOS10 上使用 Web 集成时也看到了这个问题
  • 我正在使用由 Braintree 托管的 Braintree-2.29.0.min.js,并且在 iPhone 5s (iOS 10.0.2) 和 iPhone 6SE (iOS 10.0.2) 上遇到了同样的问题。

标签: ios paypal ios10 braintree


【解决方案1】:

终于找到了解决办法。这是由于在我的应用中实现的 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

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

【讨论】:

    猜你喜欢
    • 2018-02-27
    • 2017-11-30
    • 1970-01-01
    • 1970-01-01
    • 2017-10-30
    • 1970-01-01
    • 1970-01-01
    • 2020-10-09
    • 2015-08-05
    相关资源
    最近更新 更多