使用 card.io 获取人类可读格式的完整卡号

Get full card number in human readable formate using card.io

我已经使用 card.io 扫描了我的信用卡。我得到了扫描号码,但显示的是 ************8480。 我怎样才能得到确切的数字。我要检测全号。

You can refer this same question Card.io SDK gives partial credit card number

您可能正在查看的示例代码如下:

// SomeViewController.m

- (void)cardIOView:(CardIOView *)cardIOView didScanCard:(CardIOCreditCardInfo *)info {
    if (info) {
    // The full card number is available as info.cardNumber, but don't log that!
    NSLog(@"Received card info. Number: %@, expiry: %02i/%i, cvv: %@.", info.redactedCardNumber, info.expiryMonth, info.expiryYear, info.cvv);
    // Use the card info...
  }
  else {
    NSLog(@"User canceled payment info");
    // Handle user cancellation here...
  }

  cardIOView.hidden = YES;
}

Write delegate methods to receive the card info or a cancellation: Refer card-io/card.io-iOS-SDK Documentation

感谢大家的帮助。我得到了解决方案。 我已将 info.redactedCardNumber 替换为 info.cardNumber。 现在是给完整的卡号。

lblDetail.text = [NSString stringWithFormat:@"Received card info. Number: %@, expiry: %02lu/%lu, cvv: %@.", info.cardNumber, (unsigned long)info.expiryMonth, (unsigned long)info.expiryYear, info.cvv];