简体   繁体   English

如果在PayPalPaymentViewController [Paypal iOS SDK]中选择了PaywithCard,则应用程序崩溃

[英]App crashes if PaywithCard is selected in PayPalPaymentViewController [Paypal iOS SDK]

I have integrated paypal's payment gate way in my app and I have added all the neccessary sdks and libraries. 我已在我的应用程序中集成了贝宝的付款方式,并添加了所有必要的SDK和库。 When I enable acceptCreditCards option in paypal configuration, app crashes as soon as user tries to tap on PaywithCard option. 当我在Paypal配置中启用acceptCreditCards选项时,一旦用户尝试点击PaywithCard选项,应用程序就会崩溃。

Crash Log: 崩溃日志:

'Application tried to present a nil modal view controller on target <PayPalPaymentViewController: 0x7fce3029f200
Environment: sandbox
languageOrLocale: en-US
>

I even tried enabling PaywithCard in paypal's sample app and observed the same behaviour.I'm using Xcode 8, swift 3 and 我什至尝试在Paypal的示例应用程序中启用PaywithCard并观察到相同的行为。我使用的是Xcode 8,swift 3和

我已经添加了card.io SDK并在运行之前清理了该应用程序。现在该应用程序可以正常运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM