Debug Log

To check the payment stage , you can add the notification like following

- (void)viewDidLoad
{
  ...
  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(Log:) name:iOS2c2pLogNoti object:nil];
  ...
}

-(void)Log:(NSNotification*)notification
{
    NSLog(@"Current Payment Log : %@ ",notification.object);
}
override func viewDidLoad() {
    ...
  NotificationCenter.default.addObserver(self, selector: #selector(ViewController.log(notification:)), name: NSNotification.Name(rawValue: iOS2c2pLogNoti) , object: nil)
    ...
}

func log(notification :NSNotification) {
  print(notification)
}

Description

Log will be like followig

Name Description
[Development Mode] SDK Mode (development or production)
Start Request Payment Request Staring
Show The OTP Page OTP page will appear
Present OTP from Card Information OTP page will appear
Connection Fail Error Connection Fail
Payment Complete Payment request has been done
Cancel the payment Payment has been canceled