Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Card IO on iOS, cannot scan ID cards #89

Closed
biksappdev opened this issue Dec 30, 2014 · 9 comments
Closed

Card IO on iOS, cannot scan ID cards #89

biksappdev opened this issue Dec 30, 2014 · 9 comments

Comments

@biksappdev
Copy link

Hi Dave @dgoldman-ebay , I am working on integrating Card IO library in my application to the latest 4.0.0 version. As per the new library, I do not see the property, 'detectCardOnly' in the latest framework and therefore I am unable to scan normal ID cards in my app which was happening earlier. Is there any replacement for this property or was it deliberately removed and Card IO can not scan regular ID cards ? Kindly clarify.

@dgoldman-pdx
Copy link
Member

@biksappdev in either CardIOPaymentViewController.h or CardIOView.h, look for the property detectionMode.

@biksappdev
Copy link
Author

@dgoldman-ebay , thanks a lot..I got another problem and its an issue with frame, after updating the scanning window frame and the overlay frame are messed up. Kindly see attached image. Before the update it used to work perfectly fine so I am suspecting is there something which changed in the library ?
Kindly see attached image.
img_0061

@dgoldman-pdx
Copy link
Member

@biksappdev I'm not aware of any recent change in our library that would have such an effect. How old a version of card.io were you using previously?

@biksappdev
Copy link
Author

@dgoldman-ebay , earlier version used was 3.6.3.

@dgoldman-pdx
Copy link
Member

Well, that was 16 versions ago. I don't see anything relevant in the release notes, but it's certainly possible that in dealing with some screen orientation or other issues we might have made some small tweaks to our layout code.

(Is it possible that you formerly tested only with 3.5" screens, and this is the first time you are using a 4" screen?)

In any case, the position of the card.io overlay elements is (essentially) hard-coded. So I think you just need to adjust the vertical positioning of your app's UI elements here until they appear as you desire.

@biksappdev
Copy link
Author

@dgoldman-ebay , Even if I change the position of my custom UI elements it has no effect when set as the 'scanOverlayView' property. Is this the right way to set it up ?

@dgoldman-pdx
Copy link
Member

Ah, you are using scanOverlayView. Prior to version 4.0 of card.io this property was available only in a special build made available to a few select partners -- including your company, apparently.

We have not been paying much attention to these special-build properties as we have been updating card.io. So it's certainly possible that something has changed in the way the rest of the code interacts with the scanOverlayView.

Hmm. I've just taken a look at our use of scanOverlayView within the SDK. It is actually quite simple -- your provided view is simply added as a subview of the camera view, atop our own overlay subviews. Nothing has changed there in any recent releases.

I think you can probably continue to use your existing overlay view (although the flash-on/off button is obsolete these days for card.io), but you will need to adjust its margins or constraints so that it lines up correctly with our overlay elements.

@biksappdev
Copy link
Author

Thanks for your help, its all resolved and working great now. Thanks a lot @dgoldman-ebay :)

@dgoldman-pdx
Copy link
Member

:)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants