Abu Ul Hassan
Abu Ul Hassan

Reputation: 1396

Enabling payments with a credit card in PayPal gives crash on both simulator and physical device

 _payPalConfig.acceptCreditCards = NO;

If I set _payPalConfig.acceptCreditCards to YES, the app crashes with the following exception:

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

Upvotes: 1

Views: 127

Answers (1)

Waqar Khalid
Waqar Khalid

Reputation: 119

Please do import

#import "CardIO.h"

In your ViewController.h file and also add CardIOPaymentViewControllerDelegate in your class.

Upvotes: 1

Related Questions