CreditCardScannerConfiguration

data class CreditCardScannerConfiguration(var useDocumentDetector: Boolean = true, var scanningMode: CreditCardScanningMode = CreditCardScanningMode.LIVE, var requireExpiryDate: Boolean = true, var requireCardholderName: Boolean = true, var resultAccumulationConfig: ResultAccumulationConfiguration = ResultAccumulationConfiguration( ), var returnCreditCardImage: Boolean = false) : Parcelable

Configuration for the credit card scanner.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(useDocumentDetector: Boolean = true, scanningMode: CreditCardScanningMode = CreditCardScanningMode.LIVE, requireExpiryDate: Boolean = true, requireCardholderName: Boolean = true, resultAccumulationConfig: ResultAccumulationConfiguration = ResultAccumulationConfiguration( ), returnCreditCardImage: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the cardholder name is required for a successful scan.

Link copied to clipboard

Whether the expiry date is required for a successful scan.

Link copied to clipboard

Configuration for how to accumulate results.

Link copied to clipboard

If true, the credit card image will be returned in creditCard field of CreditCardScanningResult.

Link copied to clipboard

The scanning mode.

Link copied to clipboard

If true, the document detector will be used to find where the credit card is in the input image. If false, the scanner will assume that the credit card has been pre-cropped and takes the entirety of the input image.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject