Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ function AcuantCamera({
},
[onImageCaptureSuccess],
);

console.log('acuant-camera', 'got into the component');

useEffect(() => {
const textOptions = {
Expand All @@ -326,11 +328,12 @@ function AcuantCamera({
});

window.AcuantCameraUI = getActualAcuantCameraUI();
console.log('acuant-camera', 'near AcuantCameraUI.start()')
window.AcuantCameraUI.start(
{
onCaptured: onCropStart,
onCropped,
onFailure: onImageCaptureFailure,
onError: onImageCaptureFailure,
},
onFailureCallbackWithOptions,
textOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function AcuantCaptureCanvas() {
const { isReady, acuantCaptureMode, setAcuantCaptureMode } = useContext(AcuantContext);
const { t } = useI18n();
const cameraRef = useRef(/** @type {HTMLDivElement?} */ (null));
console.log('acuant-capture-canvas', 'got into the component');
console.log('acuant-capture-canvas', isReady, acuantCaptureMode);

useEffect(() => {
function onAcuantCameraCreated() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ function AcuantCapture(
* before calling the original function.
*/
function withLoggedClick(source: string, metadata: { isDrop: boolean } = { isDrop: false }) {
console.log('withLoggedClick source', source);
return <T extends (...args: any[]) => any>(fn: T) =>
(...args: Parameters<T>) => {
if (!isSuppressingClickLogging.current) {
Expand Down Expand Up @@ -403,6 +404,8 @@ function AcuantCapture(
* another element which aims to trigger the prompt of the file input.
*/
function startCaptureOrTriggerUpload(event: MouseEvent) {
const isAcuantCaptureCapableConsoleLog = hasCapture && !acuantFailureCookie;
console.log('startCaptureOrTriggerUpload', isAcuantCaptureCapableConsoleLog, hasCapture, acuantFailureCookie, forceNativeCamera);
if (event.target === inputRef.current) {
const isAcuantCaptureCapable = hasCapture && !acuantFailureCookie;
const shouldStartAcuantCapture =
Expand Down Expand Up @@ -491,11 +494,13 @@ function AcuantCapture(
}

function onAcuantImageCaptureFailure(error: AcuantCaptureFailureError, code: string | undefined) {
console.log('onAcuantImageCaptureFailure', error, code);
const { SEQUENCE_BREAK_CODE } = window.AcuantJavascriptWebSdk;
if (isAcuantCameraAccessFailure(error)) {
if (fullScreenRef.current?.focusTrap) {
suspendFocusTrapForAnticipatedFocus(fullScreenRef.current.focusTrap);
}
console.log('setAcuantFailureCookie used to wipe cookie');

// Internally, Acuant sets a cookie to bail on guided capture if initialization had
// previously failed for any reason, including declined permission. Since the cookie
Expand Down Expand Up @@ -527,6 +532,7 @@ function AcuantCapture(
error: getNormalizedAcuantCaptureFailureMessage(error, code),
});
}
console.log('acuant-capture', isMobile, hasCapture, allowUpload);

return (
<div className={[className, 'document-capture-acuant-capture'].filter(Boolean).join(' ')}>
Expand Down
8 changes: 5 additions & 3 deletions config/application.yml.default
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ idv_available: true
idv_contact_phone_number: (844) 555-5555
idv_max_attempts: 5
idv_min_age_years: 13
idv_acuant_sdk_version_default: '11.8.2'
idv_acuant_sdk_version_alternate: '11.8.1'
idv_acuant_sdk_version_default: '11.9.1'
idv_acuant_sdk_version_alternate: '11.9.1'
idv_acuant_sdk_upgrade_a_b_testing_enabled: false
idv_acuant_sdk_upgrade_a_b_testing_percent: 50
idv_getting_started_a_b_testing: '{"welcome_default":100, "welcome_new":0, "getting_started":0}'
Expand Down Expand Up @@ -374,7 +374,8 @@ development:
doc_auth_vendor_randomize: false
doc_auth_vendor_randomize_percent: 0
doc_auth_vendor_randomize_alternate_vendor: ''
domain_name: localhost:3000
domain_name: 192.168.1.6:3000 # 07-17-2023 for mobile dev
enable_load_testing_mode: true # 07-17-2023 for mobile dev
enable_rate_limiting: false
hmac_fingerprinter_key: a2c813d4dca919340866ba58063e4072adc459b767a74cf2666d5c1eef3861db26708e7437abde1755eb24f4034386b0fea1850a1cb7e56bff8fae3cc6ade96c
hmac_fingerprinter_key_queue: '["11111111111111111111111111111111", "22222222222222222222222222222222"]'
Expand All @@ -384,6 +385,7 @@ development:
logins_per_ip_limit: 5
logo_upload_enabled: true
max_bad_passwords: 5
mailer_domain_name: 192.168.1.6:3000 # 07-17-2023 for mobile dev
newrelic_browser_app_id: ''
newrelic_browser_key: ''
newrelic_license_key: ''
Expand Down