I want to scan a credit card on an iOS app. I used CardIO Framework but it is not working on 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)
So I was wondering what the best way to implement CardIO without displaying the built-in preloaded view when cardInfo is provided.
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)
thus cardScan Library but neither the expiryDate nor name card Holder is returned. I'm not really sure if the chunk of code I developed misses Something to configure the creditInfo callback.
I also tested the DyScan Framework as an update of CardIO API however there no podSpec available:DyscanIntegrationGuide
Does iOS provide any public API for developers to scan credit cards ? Or is there any better solutions ?