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

Exposing scannedImageDuration to SDK #29

Merged
merged 1 commit into from
Jul 12, 2015

Conversation

ClaudeSutterlin
Copy link

There was no way to reduce scanned image duration to 0 seconds, so there was always a flash of the card numbers on the screen. We had a client request that the numbers are never shown in that manner, so I exposed that value to the SDK.

@josharian
Copy link
Member

LGTM; thanks!

@dgoldman-ebay, I'm leaving this to you to merge (or not) as you see fit.

@@ -26,6 +26,7 @@
@property(nonatomic, assign, readwrite) BOOL disableBlurWhenBackgrounding;
@property(nonatomic, assign, readwrite) BOOL suppressScanConfirmation;
@property(nonatomic, assign, readwrite) BOOL suppressScannedCardImage;
@property(nonatomic, assign, readwrite) CGFloat scannedImageDuration;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this new line down below to just before the allowFreelyRotatingCardGuide line? That will keep it consistent with the properties order in CardIOConfig.h. (Not that we've always been consistent in the past!)

@dgoldman-pdx
Copy link
Member

Okay, 3 teensy picky requests about line order, and one small but substantive request (change a comment and add a line inside [CardIOPaymentViewController initWithPaymentDelegate:scanningEnabled:] to set a default value of 0.1).

Let us know when you've got those in, and I'll merge this in. And then, probably this weekend, make a new official release.

@@ -76,6 +76,13 @@
/// Defaults to NO.
@property(nonatomic, assign, readwrite) BOOL suppressScannedCardImage;

/// After a successful scan, the CardIOView will briefly display an image of the card with
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, 1 more teensy picky request. We shouldn't mention the CardIOView here. If you can think of a better wording, go for it. Or else you can leave that to me, post-merge.

@ClaudeSutterlin
Copy link
Author

@dgoldman-ebay Thanks for the review. I've made all of the suggested changes. One thing I'm slightly uncomfortable with is the default value. Would you be okay with setting the value on the CardIOContext directly (in [CardIOPaymentViewController initWithPaymentDelegate:scanningEnabled:])? ie

_context.scannedImageDuration = 0.1;

I don't see any precedent for that, so I'd rather ask what you prefer.

@dgoldman-pdx
Copy link
Member

@ClaudeSutterlin yes, that's exactly what I had in mind.

dgoldman-pdx pushed a commit that referenced this pull request Jul 12, 2015
Exposing scannedImageDuration to SDK
@dgoldman-pdx dgoldman-pdx merged commit a8f318c into card-io:master Jul 12, 2015
@dgoldman-pdx
Copy link
Member

Incorporated in Version 5.1.0.

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

Successfully merging this pull request may close these issues.

3 participants