在PayPal中启用信用卡付款会在模拟器和物理设备上造成崩溃


 _payPalConfig.acceptCreditCards = NO;

如果我将_payPalConfig.acceptCreditCards设置为 YES,应用程序将崩溃并出现以下异常:

  Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target <PayPalPaymentViewController: 0x7f8b03029a00

请执行导入

#import "CardIO.h"

在您的 ViewController.h 文件中,并添加CardIOPaymentViewControllerDelegate在你的课堂上。

相关内容

最新更新