Skip to main content

Configure the Scan

1. Create a configuration object to customize the scanning UI.

See Scan Configuration for a complete explanation of the available options.

const config = {
logoUrl: "https://example.com/your-logo-url.png",
promptIfFewDigits: true,
showDynetiLogo: true,
showFirstSecondSideProgress: true,
showProgressBar: true,
showExplanation: true,
showResult: true,
showThrobber: true,
toastTimeout: 5000,
};

2. Specify which card features you would like to verify

The Verification Request determines which features of the card should be checked during the scan.

See the Verification Request documentation for an explanation of the fields.

const verify = {
cardholderName: "John Smith",
firstSix: "123456",
lastFour: "4321",
detectWrongCard: true
}