Socket
Socket
Sign inDemoInstall

@microblink/blinkcard-capacitor

Package Overview
Dependencies
2
Maintainers
12
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.4.0

10

dist/esm/definitions.d.ts

@@ -1,9 +0,3 @@

declare module '@capacitor/core' {
interface PluginRegistry {
BlinkCardCapacitorPlugin: {
scanWithCamera: Function;
};
}
export interface BlinkCardCapacitorPlugin {
scanWithCamera: Function;
}
declare const _default: {};
export default _default;

2

dist/esm/definitions.js

@@ -1,2 +0,2 @@

export default {};
export {};
//# sourceMappingURL=definitions.js.map

@@ -16,15 +16,15 @@ import { Recognizer, RecognizerResult } from '../recognizer';

/**
* Flag which indicatew whether the payment card number is valid or not.
* The payment card number is valid
*/
cardNumberValid: boolean;
/**
* Payment card's security code/value.
* Payment card's security code/value.
*/
cvv: string;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
digitalSignature: string;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/

@@ -37,3 +37,3 @@ digitalSignatureVersion: number;

/**
* Whether the first scanned side is blurred.
* Wheater the first scanned side is blurred.
*/

@@ -54,3 +54,3 @@ firstSideBlurred: boolean;

/**
* Information about the payment card owner.
* Information about the payment card owner (name, company, etc.).
*/

@@ -63,7 +63,8 @@ owner: string;

/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/
scanningFirstSideDone: boolean;
/**
* Whether the second scanned side is blurred.
* Wheater the second scanned side is blurred.
*/

@@ -78,23 +79,33 @@ secondSideBlurred: boolean;

/**
* Recognizer used for scanning both sides of payment cards.
* Recognizer used for scanning credit/debit cards.
*/
export declare class BlinkCardRecognizer extends Recognizer {
/**
* Whether blured frames filtering is allowed.
* Defines whether blured frames filtering is allowed
*
*
*/
allowBlurFilter: boolean;
/**
* The settings which control the anonymization of returned data.
* Defines whether sensitive data should be redacted from the result.
*
*
*/
anonymizationSettings: BlinkCardAnonymizationSettings;
/**
* Should extract the card CVV
* Should extract CVV
*
*
*/
extractCvv: boolean;
/**
* Should extract the payment card's expiry date.
* Should extract the payment card's month of expiry
*
*
*/
extractExpiryDate: boolean;
/**
* Should extract the card IBAN
* Should extract the payment card's IBAN
*
*
*/

@@ -104,22 +115,38 @@ extractIban: boolean;

* Should extract the card owner information
*
*
*/
extractOwner: boolean;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
fullDocumentImageDpi: number;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
fullDocumentImageExtensionFactors: ImageExtensionFactors;
/**
* Padding is a minimum distance from the edge of the frame and it is defined as a percentage
* Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case
* padding edge and image edge are the same.
* Recommended value is 0.02f.
*
*
*/
paddingEdge: number;
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
returnFullDocumentImage: boolean;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -126,0 +153,0 @@ signResult: boolean;

@@ -19,15 +19,15 @@ import { Recognizer, RecognizerResult } from '../recognizer';

/**
* Flag which indicatew whether the payment card number is valid or not.
* The payment card number is valid
*/
this.cardNumberValid = nativeResult.cardNumberValid;
/**
* Payment card's security code/value.
* Payment card's security code/value.
*/
this.cvv = nativeResult.cvv;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
this.digitalSignature = nativeResult.digitalSignature;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/

@@ -40,3 +40,3 @@ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion;

/**
* Whether the first scanned side is blurred.
* Wheater the first scanned side is blurred.
*/

@@ -57,3 +57,3 @@ this.firstSideBlurred = nativeResult.firstSideBlurred;

/**
* Information about the payment card owner.
* Information about the payment card owner (name, company, etc.).
*/

@@ -66,7 +66,8 @@ this.owner = nativeResult.owner;

/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/
this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;
/**
* Whether the second scanned side is blurred.
* Wheater the second scanned side is blurred.
*/

@@ -81,3 +82,3 @@ this.secondSideBlurred = nativeResult.secondSideBlurred;

/**
* Recognizer used for scanning both sides of payment cards.
* Recognizer used for scanning credit/debit cards.
*/

@@ -88,19 +89,29 @@ export class BlinkCardRecognizer extends Recognizer {

/**
* Whether blured frames filtering is allowed.
* Defines whether blured frames filtering is allowed
*
*
*/
this.allowBlurFilter = true;
/**
* The settings which control the anonymization of returned data.
* Defines whether sensitive data should be redacted from the result.
*
*
*/
this.anonymizationSettings = new BlinkCardAnonymizationSettings();
/**
* Should extract the card CVV
* Should extract CVV
*
*
*/
this.extractCvv = true;
/**
* Should extract the payment card's expiry date.
* Should extract the payment card's month of expiry
*
*
*/
this.extractExpiryDate = true;
/**
* Should extract the card IBAN
* Should extract the payment card's IBAN
*
*
*/

@@ -110,22 +121,38 @@ this.extractIban = true;

* Should extract the card owner information
*
*
*/
this.extractOwner = true;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.fullDocumentImageDpi = 250;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Padding is a minimum distance from the edge of the frame and it is defined as a percentage
* Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case
* padding edge and image edge are the same.
* Recommended value is 0.02f.
*
*
*/
this.paddingEdge = 0.0;
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
this.returnFullDocumentImage = false;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -132,0 +159,0 @@ this.signResult = false;

import { Recognizer, RecognizerResult } from '../recognizer';
import { Date, DataMatchResult, ImageExtensionFactors } from '../types';
import { Date, ImageExtensionFactors, DataMatchResult } from '../types';
/**

@@ -12,23 +12,26 @@ * Result object for LegacyBlinkCardEliteRecognizer.

/**
* Payment card's security code/value.
* Payment card's security code/value
*/
cvv: string;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
digitalSignature: string;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/
digitalSignatureVersion: number;
/**
* Defines result of the data matching algorithm for scanned parts/sides of the document.
* Returns CDataMatchResultSuccess if data from scanned parts/sides of the document match,
* CDataMatchResultFailed otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return CDataMatchResultFailed. Result will
* be CDataMatchResultSuccess only if scanned values for all fields that are compared are the same.
*/
documentDataMatch: DataMatchResult;
/**
* Back side image of the document
* back side image of the document if enabled with returnFullDocumentImage property.
*/
fullDocumentBackImage: string;
/**
* Front side image of the document
* front side image of the document if enabled with returnFullDocumentImage property.
*/

@@ -41,7 +44,8 @@ fullDocumentFrontImage: string;

/**
* Information about the payment card owner (name, company, etc.)
* Information about the payment card owner (name, company, etc.).
*/
owner: string;
/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/

@@ -56,3 +60,3 @@ scanningFirstSideDone: boolean;

/**
* Recognizer used for scanning both sides of elite payment cards.
* Recognizer used for scanning the front side of elite credit/debit cards.
*/

@@ -62,6 +66,10 @@ export declare class LegacyBlinkCardEliteRecognizer extends Recognizer {

* Should anonymize the card number area (redact image pixels) on the document image result
*
*
*/
anonymizeCardNumber: boolean;
/**
* Should anonymize the CVV area (redact image pixels) on the document image result
* Should anonymize the CVV on the document image result
*
*
*/

@@ -71,6 +79,10 @@ anonymizeCvv: boolean;

* Should anonymize the owner area (redact image pixels) on the document image result
*
*
*/
anonymizeOwner: boolean;
/**
* Defines whether glare detector is enabled.
* Defines if glare detection should be turned on/off.
*
*
*/

@@ -80,2 +92,4 @@ detectGlare: boolean;

* Should extract the card's inventory number
*
*
*/

@@ -85,2 +99,4 @@ extractInventoryNumber: boolean;

* Should extract the card owner information
*
*
*/

@@ -90,18 +106,30 @@ extractOwner: boolean;

* Should extract the payment card's month of expiry
*
*
*/
extractValidThru: boolean;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
fullDocumentImageDpi: number;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
fullDocumentImageExtensionFactors: ImageExtensionFactors;
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
returnFullDocumentImage: boolean;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -108,0 +136,0 @@ signResult: boolean;

@@ -15,23 +15,26 @@ import { Recognizer, RecognizerResult } from '../recognizer';

/**
* Payment card's security code/value.
* Payment card's security code/value
*/
this.cvv = nativeResult.cvv;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
this.digitalSignature = nativeResult.digitalSignature;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/
this.digitalSignatureVersion = nativeResult.digitalSignatureVersion;
/**
* Defines result of the data matching algorithm for scanned parts/sides of the document.
* Returns CDataMatchResultSuccess if data from scanned parts/sides of the document match,
* CDataMatchResultFailed otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return CDataMatchResultFailed. Result will
* be CDataMatchResultSuccess only if scanned values for all fields that are compared are the same.
*/
this.documentDataMatch = nativeResult.documentDataMatch;
/**
* Back side image of the document
* back side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentBackImage = nativeResult.fullDocumentBackImage;
/**
* Front side image of the document
* front side image of the document if enabled with returnFullDocumentImage property.
*/

@@ -44,7 +47,8 @@ this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage;

/**
* Information about the payment card owner (name, company, etc.)
* Information about the payment card owner (name, company, etc.).
*/
this.owner = nativeResult.owner;
/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/

@@ -59,3 +63,3 @@ this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;

/**
* Recognizer used for scanning both sides of elite payment cards.
* Recognizer used for scanning the front side of elite credit/debit cards.
*/

@@ -67,6 +71,10 @@ export class LegacyBlinkCardEliteRecognizer extends Recognizer {

* Should anonymize the card number area (redact image pixels) on the document image result
*
*
*/
this.anonymizeCardNumber = false;
/**
* Should anonymize the CVV area (redact image pixels) on the document image result
* Should anonymize the CVV on the document image result
*
*
*/

@@ -76,6 +84,10 @@ this.anonymizeCvv = false;

* Should anonymize the owner area (redact image pixels) on the document image result
*
*
*/
this.anonymizeOwner = false;
/**
* Defines whether glare detector is enabled.
* Defines if glare detection should be turned on/off.
*
*
*/

@@ -85,2 +97,4 @@ this.detectGlare = true;

* Should extract the card's inventory number
*
*
*/

@@ -90,2 +104,4 @@ this.extractInventoryNumber = true;

* Should extract the card owner information
*
*
*/

@@ -95,18 +111,30 @@ this.extractOwner = true;

* Should extract the payment card's month of expiry
*
*
*/
this.extractValidThru = true;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.fullDocumentImageDpi = 250;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
this.returnFullDocumentImage = false;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -113,0 +141,0 @@ this.signResult = false;

import { Recognizer, RecognizerResult } from '../recognizer';
import { Date, LegacyCardIssuer, DataMatchResult, ImageExtensionFactors } from '../types';
import { Date, LegacyCardIssuer, ImageExtensionFactors, DataMatchResult } from '../types';
/**

@@ -12,27 +12,30 @@ * Result object for LegacyBlinkCardRecognizer.

/**
* Payment card's security code/value.
* Payment card's security code/value
*/
cvv: string;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
digitalSignature: string;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/
digitalSignatureVersion: number;
/**
* Defines result of the data matching algorithm for scanned parts/sides of the document.
* Returns CDataMatchResultSuccess if data from scanned parts/sides of the document match,
* CDataMatchResultFailed otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return CDataMatchResultFailed. Result will
* be CDataMatchResultSuccess only if scanned values for all fields that are compared are the same.
*/
documentDataMatch: DataMatchResult;
/**
* Back side image of the document
* back side image of the document if enabled with returnFullDocumentImage property.
*/
fullDocumentBackImage: string;
/**
* Front side image of the document
* front side image of the document if enabled with returnFullDocumentImage property.
*/
fullDocumentFrontImage: string;
/**
* Payment card's IBAN.
* Payment card's IBAN
*/

@@ -45,11 +48,12 @@ iban: string;

/**
* The payment card's issuing network.
* Payment card's issuing network
*/
issuer: LegacyCardIssuer;
/**
* Information about the payment card owner (name, company, etc.)
* Information about the payment card owner (name, company, etc.).
*/
owner: string;
/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/

@@ -64,3 +68,3 @@ scanningFirstSideDone: boolean;

/**
* Recognizer used for scanning both sides of payment cards.
* Recognizer used for scanning the front side of credit/debit cards.
*/

@@ -70,6 +74,10 @@ export declare class LegacyBlinkCardRecognizer extends Recognizer {

* Should anonymize the card number area (redact image pixels) on the document image result
*
*
*/
anonymizeCardNumber: boolean;
/**
* Should anonymize the CVV area (redact image pixels) on the document image result
* Should anonymize the CVV on the document image result
*
*
*/

@@ -79,2 +87,4 @@ anonymizeCvv: boolean;

* Should anonymize the IBAN area (redact image pixels) on the document image result
*
*
*/

@@ -84,14 +94,22 @@ anonymizeIban: boolean;

* Should anonymize the owner area (redact image pixels) on the document image result
*
*
*/
anonymizeOwner: boolean;
/**
* Defines whether glare detector is enabled.
* Defines if glare detection should be turned on/off.
*
*
*/
detectGlare: boolean;
/**
* Should extract the card CVV
* Should extract CVV
*
*
*/
extractCvv: boolean;
/**
* Should extract the card IBAN
* Should extract the payment card's IBAN
*
*
*/

@@ -101,2 +119,4 @@ extractIban: boolean;

* Should extract the card's inventory number
*
*
*/

@@ -106,2 +126,4 @@ extractInventoryNumber: boolean;

* Should extract the card owner information
*
*
*/

@@ -111,18 +133,30 @@ extractOwner: boolean;

* Should extract the payment card's month of expiry
*
*
*/
extractValidThru: boolean;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
fullDocumentImageDpi: number;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
fullDocumentImageExtensionFactors: ImageExtensionFactors;
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
returnFullDocumentImage: boolean;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -129,0 +163,0 @@ signResult: boolean;

@@ -15,27 +15,30 @@ import { Recognizer, RecognizerResult } from '../recognizer';

/**
* Payment card's security code/value.
* Payment card's security code/value
*/
this.cvv = nativeResult.cvv;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
this.digitalSignature = nativeResult.digitalSignature;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/
this.digitalSignatureVersion = nativeResult.digitalSignatureVersion;
/**
* Defines result of the data matching algorithm for scanned parts/sides of the document.
* Returns CDataMatchResultSuccess if data from scanned parts/sides of the document match,
* CDataMatchResultFailed otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return CDataMatchResultFailed. Result will
* be CDataMatchResultSuccess only if scanned values for all fields that are compared are the same.
*/
this.documentDataMatch = nativeResult.documentDataMatch;
/**
* Back side image of the document
* back side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentBackImage = nativeResult.fullDocumentBackImage;
/**
* Front side image of the document
* front side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage;
/**
* Payment card's IBAN.
* Payment card's IBAN
*/

@@ -48,11 +51,12 @@ this.iban = nativeResult.iban;

/**
* The payment card's issuing network.
* Payment card's issuing network
*/
this.issuer = nativeResult.issuer;
/**
* Information about the payment card owner (name, company, etc.)
* Information about the payment card owner (name, company, etc.).
*/
this.owner = nativeResult.owner;
/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/

@@ -67,3 +71,3 @@ this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;

/**
* Recognizer used for scanning both sides of payment cards.
* Recognizer used for scanning the front side of credit/debit cards.
*/

@@ -75,6 +79,10 @@ export class LegacyBlinkCardRecognizer extends Recognizer {

* Should anonymize the card number area (redact image pixels) on the document image result
*
*
*/
this.anonymizeCardNumber = false;
/**
* Should anonymize the CVV area (redact image pixels) on the document image result
* Should anonymize the CVV on the document image result
*
*
*/

@@ -84,2 +92,4 @@ this.anonymizeCvv = false;

* Should anonymize the IBAN area (redact image pixels) on the document image result
*
*
*/

@@ -89,14 +99,22 @@ this.anonymizeIban = false;

* Should anonymize the owner area (redact image pixels) on the document image result
*
*
*/
this.anonymizeOwner = false;
/**
* Defines whether glare detector is enabled.
* Defines if glare detection should be turned on/off.
*
*
*/
this.detectGlare = true;
/**
* Should extract the card CVV
* Should extract CVV
*
*
*/
this.extractCvv = true;
/**
* Should extract the card IBAN
* Should extract the payment card's IBAN
*
*
*/

@@ -106,2 +124,4 @@ this.extractIban = false;

* Should extract the card's inventory number
*
*
*/

@@ -111,2 +131,4 @@ this.extractInventoryNumber = true;

* Should extract the card owner information
*
*
*/

@@ -116,18 +138,30 @@ this.extractOwner = false;

* Should extract the payment card's month of expiry
*
*
*/
this.extractValidThru = true;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.fullDocumentImageDpi = 250;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
this.returnFullDocumentImage = false;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -134,0 +168,0 @@ this.signResult = false;

@@ -213,15 +213,15 @@ var capacitorPlugin = (function (exports, core) {

/**
* Flag which indicatew whether the payment card number is valid or not.
* The payment card number is valid
*/
this.cardNumberValid = nativeResult.cardNumberValid;
/**
* Payment card's security code/value.
* Payment card's security code/value.
*/
this.cvv = nativeResult.cvv;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
this.digitalSignature = nativeResult.digitalSignature;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/

@@ -234,3 +234,3 @@ this.digitalSignatureVersion = nativeResult.digitalSignatureVersion;

/**
* Whether the first scanned side is blurred.
* Wheater the first scanned side is blurred.
*/

@@ -251,3 +251,3 @@ this.firstSideBlurred = nativeResult.firstSideBlurred;

/**
* Information about the payment card owner.
* Information about the payment card owner (name, company, etc.).
*/

@@ -260,7 +260,8 @@ this.owner = nativeResult.owner;

/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/
this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;
/**
* Whether the second scanned side is blurred.
* Wheater the second scanned side is blurred.
*/

@@ -275,3 +276,3 @@ this.secondSideBlurred = nativeResult.secondSideBlurred;

/**
* Recognizer used for scanning both sides of payment cards.
* Recognizer used for scanning credit/debit cards.
*/

@@ -282,19 +283,29 @@ class BlinkCardRecognizer extends Recognizer {

/**
* Whether blured frames filtering is allowed.
* Defines whether blured frames filtering is allowed
*
*
*/
this.allowBlurFilter = true;
/**
* The settings which control the anonymization of returned data.
* Defines whether sensitive data should be redacted from the result.
*
*
*/
this.anonymizationSettings = new BlinkCardAnonymizationSettings();
/**
* Should extract the card CVV
* Should extract CVV
*
*
*/
this.extractCvv = true;
/**
* Should extract the payment card's expiry date.
* Should extract the payment card's month of expiry
*
*
*/
this.extractExpiryDate = true;
/**
* Should extract the card IBAN
* Should extract the payment card's IBAN
*
*
*/

@@ -304,22 +315,38 @@ this.extractIban = true;

* Should extract the card owner information
*
*
*/
this.extractOwner = true;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.fullDocumentImageDpi = 250;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Padding is a minimum distance from the edge of the frame and it is defined as a percentage
* Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case
* padding edge and image edge are the same.
* Recommended value is 0.02f.
*
*
*/
this.paddingEdge = 0.0;
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
this.returnFullDocumentImage = false;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -343,23 +370,26 @@ this.signResult = false;

/**
* Payment card's security code/value.
* Payment card's security code/value
*/
this.cvv = nativeResult.cvv;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
this.digitalSignature = nativeResult.digitalSignature;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/
this.digitalSignatureVersion = nativeResult.digitalSignatureVersion;
/**
* Defines result of the data matching algorithm for scanned parts/sides of the document.
* Returns CDataMatchResultSuccess if data from scanned parts/sides of the document match,
* CDataMatchResultFailed otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return CDataMatchResultFailed. Result will
* be CDataMatchResultSuccess only if scanned values for all fields that are compared are the same.
*/
this.documentDataMatch = nativeResult.documentDataMatch;
/**
* Back side image of the document
* back side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentBackImage = nativeResult.fullDocumentBackImage;
/**
* Front side image of the document
* front side image of the document if enabled with returnFullDocumentImage property.
*/

@@ -372,7 +402,8 @@ this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage;

/**
* Information about the payment card owner (name, company, etc.)
* Information about the payment card owner (name, company, etc.).
*/
this.owner = nativeResult.owner;
/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/

@@ -387,3 +418,3 @@ this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;

/**
* Recognizer used for scanning both sides of elite payment cards.
* Recognizer used for scanning the front side of elite credit/debit cards.
*/

@@ -395,6 +426,10 @@ class LegacyBlinkCardEliteRecognizer extends Recognizer {

* Should anonymize the card number area (redact image pixels) on the document image result
*
*
*/
this.anonymizeCardNumber = false;
/**
* Should anonymize the CVV area (redact image pixels) on the document image result
* Should anonymize the CVV on the document image result
*
*
*/

@@ -404,6 +439,10 @@ this.anonymizeCvv = false;

* Should anonymize the owner area (redact image pixels) on the document image result
*
*
*/
this.anonymizeOwner = false;
/**
* Defines whether glare detector is enabled.
* Defines if glare detection should be turned on/off.
*
*
*/

@@ -413,2 +452,4 @@ this.detectGlare = true;

* Should extract the card's inventory number
*
*
*/

@@ -418,2 +459,4 @@ this.extractInventoryNumber = true;

* Should extract the card owner information
*
*
*/

@@ -423,18 +466,30 @@ this.extractOwner = true;

* Should extract the payment card's month of expiry
*
*
*/
this.extractValidThru = true;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.fullDocumentImageDpi = 250;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
this.returnFullDocumentImage = false;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -458,27 +513,30 @@ this.signResult = false;

/**
* Payment card's security code/value.
* Payment card's security code/value
*/
this.cvv = nativeResult.cvv;
/**
* Defines digital signature of recognition results.
* Digital signature of the recognition result. Available only if enabled with signResult property.
*/
this.digitalSignature = nativeResult.digitalSignature;
/**
* Defines digital signature version.
* Version of the digital signature. Available only if enabled with signResult property.
*/
this.digitalSignatureVersion = nativeResult.digitalSignatureVersion;
/**
* Defines result of the data matching algorithm for scanned parts/sides of the document.
* Returns CDataMatchResultSuccess if data from scanned parts/sides of the document match,
* CDataMatchResultFailed otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return CDataMatchResultFailed. Result will
* be CDataMatchResultSuccess only if scanned values for all fields that are compared are the same.
*/
this.documentDataMatch = nativeResult.documentDataMatch;
/**
* Back side image of the document
* back side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentBackImage = nativeResult.fullDocumentBackImage;
/**
* Front side image of the document
* front side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage;
/**
* Payment card's IBAN.
* Payment card's IBAN
*/

@@ -491,11 +549,12 @@ this.iban = nativeResult.iban;

/**
* The payment card's issuing network.
* Payment card's issuing network
*/
this.issuer = nativeResult.issuer;
/**
* Information about the payment card owner (name, company, etc.)
* Information about the payment card owner (name, company, etc.).
*/
this.owner = nativeResult.owner;
/**
* {true} if recognizer has finished scanning first side and is now scanning back side,
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/

@@ -510,3 +569,3 @@ this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;

/**
* Recognizer used for scanning both sides of payment cards.
* Recognizer used for scanning the front side of credit/debit cards.
*/

@@ -518,6 +577,10 @@ class LegacyBlinkCardRecognizer extends Recognizer {

* Should anonymize the card number area (redact image pixels) on the document image result
*
*
*/
this.anonymizeCardNumber = false;
/**
* Should anonymize the CVV area (redact image pixels) on the document image result
* Should anonymize the CVV on the document image result
*
*
*/

@@ -527,2 +590,4 @@ this.anonymizeCvv = false;

* Should anonymize the IBAN area (redact image pixels) on the document image result
*
*
*/

@@ -532,14 +597,22 @@ this.anonymizeIban = false;

* Should anonymize the owner area (redact image pixels) on the document image result
*
*
*/
this.anonymizeOwner = false;
/**
* Defines whether glare detector is enabled.
* Defines if glare detection should be turned on/off.
*
*
*/
this.detectGlare = true;
/**
* Should extract the card CVV
* Should extract CVV
*
*
*/
this.extractCvv = true;
/**
* Should extract the card IBAN
* Should extract the payment card's IBAN
*
*
*/

@@ -549,2 +622,4 @@ this.extractIban = false;

* Should extract the card's inventory number
*
*
*/

@@ -554,2 +629,4 @@ this.extractInventoryNumber = true;

* Should extract the card owner information
*
*
*/

@@ -559,18 +636,30 @@ this.extractOwner = false;

* Should extract the payment card's month of expiry
*
*
*/
this.extractValidThru = true;
/**
* The DPI (Dots Per Inch) for full document image that should be returned.
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.fullDocumentImageDpi = 250;
/**
* The extension factors for full document image.
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Defines whether full document image will be available in
* Sets whether full document image of ID card should be extracted.
*
*
*/
this.returnFullDocumentImage = false;
/**
* Defines whether or not recognition result should be signed.
* Whether or not recognition result should be signed.
*
*
*/

@@ -577,0 +666,0 @@ this.signResult = false;

{
"name": "@microblink/blinkcard-capacitor",
"version": "2.3.0",
"version": "2.4.0",
"description": "AI-driven credit card scanning for cross-platform apps built with Capacitor.",

@@ -20,5 +20,5 @@ "main": "dist/plugin.js",

"devDependencies": {
"@capacitor/android": "^2.4.7",
"@capacitor/core": "^2.4.7",
"@capacitor/ios": "^2.4.7",
"@capacitor/android": "^3.2.0",
"@capacitor/core": "^3.2.0",
"@capacitor/ios": "^3.2.0",
"@ionic/prettier-config": "^1.0.0",

@@ -35,3 +35,3 @@ "@ionic/swiftlint-config": "^1.0.0",

"peerDependencies": {
"@capacitor/core": "^2.4.7"
"@capacitor/core": "^3.2.0"
},

@@ -38,0 +38,0 @@ "files": [

@@ -14,3 +14,3 @@ # BlinkCard SDK Capacitor plugin

BlinkCard plugin is developed with Capacitor version 2.4.0.
BlinkCard plugin is developed with Capacitor version 3.2.0.
For help with Capacitor, view official [documentation](https://capacitorjs.com/docs).

@@ -20,3 +20,3 @@

BlinkCard Capacitor plugin supports iOS 11.0 or newer.
BlinkCard Capacitor plugin supports iOS 12.0 or newer.

@@ -48,3 +48,3 @@ ### Android

* iOS
* Open the app in XCode by running ```npx cap open ios``` from the sample app's root directory
* Open the app in Xcode by running ```npx cap open ios``` from the sample app's root directory
* Open info.plist and add corresponding permissions to the app

@@ -56,4 +56,3 @@ * Privacy - Camera Usage Description: To Take Photos and Video

* Android
* Open the app in Android Studio by running ```npx cap open android``` from the sample app's root directory
* Press `Run`
* Run the app by executing ```npx cap run android``` from the sample app's root directory

@@ -124,20 +123,4 @@ ### Plugin usage

To use BlinkCard plugin on Android you need to add the plugin to the MainActivity.java. Note that our [script](https://github.com/BlinkCard/blinkcard-capacitor/blob/feature/ios-capacitor/initIonicSampleApp.sh) does this automatically.
BlinkCard plugin on Android is ready to use after you've added the dependency.
```java
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(com.microblink.capacitor.MicroblinkPlugin.class);
}});
}
}
```
## Licensing

@@ -144,0 +127,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc