The CardScanDropZone component provides an alternative to camera-based scanning by offering a drag-and-drop file upload interface for insurance card processing. This component is perfect for desktop workflows where users have digital images of their insurance cards ready to upload.
<CardScanDropZone
layout="side-by-side"
enableBackside={true}
// ... other props
/>
<CardScanDropZone
layout="sequential"
enableBackside={true}
// ... other props
/>
const customMessages = {
frontDropTitle: "Upload Front of Insurance Card",
frontDropSubtitle: "Drag and drop or click to select",
backDropTitle: "Upload Back of Insurance Card",
backDropSubtitle: "Drag and drop or click to select",
frontProcessingTitle: "Processing Front Card...",
backProcessingTitle: "Processing Back Card...",
uploadingTitle: "Uploading...",
successTitle: "Upload Complete!",
errorTitle: "Upload Failed",
fileTooLargeError: "File size must be under 5MB",
invalidFileTypeError: "Please upload a JPEG or PNG file"
};
<CardScanDropZone
messages={customMessages}
// ... other props
/>
<CardScanDropZone
widgetBackgroundColor="#ffffff"
primaryColor="#007bff"
progressBarColor="#28a745"
// ... other props
/>
const handleSuccess = (cardData) => {
console.log('Processed card data:', cardData);
// cardData contains extracted information from both front and back
};
<CardScanDropZone
onSuccess={handleSuccess}
// ... other props
/>