【发布时间】:2020-07-20 03:06:57
【问题描述】:
我想在 iOS 应用上扫描信用卡。 我使用 CardIO 框架,但它不适用于 ios13
guard let cardIOVC = CardIOPaymentViewController(paymentDelegate: self) else {
print("This device is incompatible with CardIO")
return
}
cardIOVC.collectCVV = false
cardIOVC.modalPresentationStyle = .overCurrentContext
present(cardIOVC, animated: true, completion: nil)
所以我想知道在提供 cardInfo 时不显示内置预加载视图的情况下实现 CardIO 的最佳方法是什么。
guard let cardIOVC = ScanViewController.createViewController(withDelegate: self) else {
print("This device is incompatible with CardScan")
return
}
cardIOVC.allowSkip = true
present(cardIOVC, animated: true, completion: nil)
因此 cardScan 库,但既不返回 expiryDate 也不返回名片持有人。 我不确定我开发的代码块是否遗漏了配置 creditInfo 回调的东西。
我还测试了 DyScan 框架作为 CardIO API 的更新,但是没有可用的 podSpec:DyscanIntegrationGuide
iOS 是否为开发人员提供任何公共 API 来扫描信用卡?或者有没有更好的解决方案?
【问题讨论】:
-
嗨,我正在调查这个问题,但无法确切了解根本问题是什么。你的 ScanViewController 是什么样子的?此外,您提到该框架无法在 iOS 13 上运行 - 我创建了一个 fork 并将其更新为最新的 Xcode,并且在 iOS 13 上运行它没有问题:github.com/Cerovec/card.io-iOS-SDK
-
可以确认 CardIO 仍在 iOS 14 上工作
标签: ios swift frameworks credit-card scanning