小编OMh*_*Mhz的帖子

在 Swift 5 上扫描信用卡库

我想在 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)
Run Code Online (Sandbox Code Playgroud)

所以我想知道在提供 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)
Run Code Online (Sandbox Code Playgroud)

因此 cardScan Library 但既不返回到期日期也不返回名片持有人。我不确定我开发的代码块是否错过了配置 creditInfo 回调的东西。

我还测试了 DyScan 框架作为 CardIO API 的更新,但是没有可用的podSpecDyscanIntegrationGuide

iOS 是否为开发者提供任何公共 API …

frameworks credit-card scanning ios swift

5
推荐指数
1
解决办法
2433
查看次数

标签 统计

credit-card ×1

frameworks ×1

ios ×1

scanning ×1

swift ×1