当我在 iOS 10 中从 BrainTree 支付页面点击 Paypal 时打开空白页面
Blank page open when I tap on Paypal from BrainTree payment page in iOS 10
我已经整合了BRAINTREE SDK into my app. Also I have following all the steps of PayPal/Client-Side Implementation。
它在 iOS 9 中运行良好。但 PAYPAL 功能仅在 iOS 10 中不起作用。当我从下方第一个屏幕点击 PAYPAL 按钮时,空白页面已打开,如下图 2 所示。
但是当我想在 iOS 9 中使用 PAYPAL 付款时,它会重定向以下页面,如下图所示,但在 iOS 10 设备中不起作用。
我不确定为什么 iOS 10 只发生这种情况。
我也添加了this issue on GitHub。
如有任何帮助,我们将不胜感激。
终于找到解决办法了。这是由于在我的应用程序中实现的 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
希望,这就是您要找的。有任何疑虑,请回复我。 :)
我已经整合了BRAINTREE SDK into my app. Also I have following all the steps of PayPal/Client-Side Implementation。
它在 iOS 9 中运行良好。但 PAYPAL 功能仅在 iOS 10 中不起作用。当我从下方第一个屏幕点击 PAYPAL 按钮时,空白页面已打开,如下图 2 所示。
但是当我想在 iOS 9 中使用 PAYPAL 付款时,它会重定向以下页面,如下图所示,但在 iOS 10 设备中不起作用。
我不确定为什么 iOS 10 只发生这种情况。
我也添加了this issue on GitHub。
如有任何帮助,我们将不胜感激。
终于找到解决办法了。这是由于在我的应用程序中实现的 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
希望,这就是您要找的。有任何疑虑,请回复我。 :)