stripe / stripe-ios

Stripe iOS SDK
https://stripe.com
MIT License
2.12k stars 981 forks source link

Can't import new Scanner UI for customization in 20.0.0 #1666

Open Andres0432 opened 4 years ago

Andres0432 commented 4 years ago

Summary

Can't import STPCardScanner, STPCameraView, and STPCardScannerDelegate into project. I've integrated stripe with custom UI and I will like to be able to use the new scanner in version 20.0.0 and get rid of Card.io interfaces. Will it be possible to access this classes like STPPaymentCardTextField and many others that are available for customization? Thanks.

Code to reproduce

I would like to implement something like in STPAddCardViewController.m

` STPCardScannerTableViewCell *scannerCell = [[STPCardScannerTableViewCell alloc] init]; _scannerCell = scannerCell;

    STPCardScanner *cardScanner = [[STPCardScanner alloc] initWithDelegate:self];
    cardScanner.cameraView = scannerCell.cameraView;
    _cardScanner = cardScanner;

`

iOS version

14.0

Installation method

Cocoapods

SDK version

20.0.0

Other information

davidme-stripe commented 4 years ago

Hello! We don't currently support using the card scanner outside of STPAddCardViewController at the moment, but we plan to add an API once it's out of beta.

robertsammons commented 3 years ago

@davidme-stripe Hey David, do you have any eta when the vision card scanning will be out of beta, keen to add this to the stripe card text field 👍

TimurAsayonok commented 3 years ago

@davidme-stripe Hey David, thank you for your answers and you amazing work. Do you have any news about an API once it's out of beta?

davidme-stripe commented 2 years ago

We recently acquired Bouncer and plan to integrate it into this SDK in 2022. In the interim, you can integrate Bouncer's open-source scanning library directly.

BDProject commented 2 years ago

That's great news @davidme-stripe about integrating a card scanner. We're using Stripe to process payments using a custom UI and have adding the ability to add a card via scanning on our roadmap for 2022 also. Is there a quarter in 2022 when you are targeting adding the functionality to the API?