diff --git a/app/javascript/packages/document-capture/components/acuant-camera.tsx b/app/javascript/packages/document-capture/components/acuant-camera.tsx index afa4ec638f2..c5fb45a217a 100644 --- a/app/javascript/packages/document-capture/components/acuant-camera.tsx +++ b/app/javascript/packages/document-capture/components/acuant-camera.tsx @@ -307,6 +307,8 @@ function AcuantCamera({ }, [onImageCaptureSuccess], ); + + console.log('acuant-camera', 'got into the component'); useEffect(() => { const textOptions = { @@ -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, diff --git a/app/javascript/packages/document-capture/components/acuant-capture-canvas.jsx b/app/javascript/packages/document-capture/components/acuant-capture-canvas.jsx index f21eb626abb..34517173eff 100644 --- a/app/javascript/packages/document-capture/components/acuant-capture-canvas.jsx +++ b/app/javascript/packages/document-capture/components/acuant-capture-canvas.jsx @@ -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() { diff --git a/app/javascript/packages/document-capture/components/acuant-capture.tsx b/app/javascript/packages/document-capture/components/acuant-capture.tsx index 5d4d17228c3..8a8a1f36e2d 100644 --- a/app/javascript/packages/document-capture/components/acuant-capture.tsx +++ b/app/javascript/packages/document-capture/components/acuant-capture.tsx @@ -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 any>(fn: T) => (...args: Parameters) => { if (!isSuppressingClickLogging.current) { @@ -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 = @@ -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 @@ -527,6 +532,7 @@ function AcuantCapture( error: getNormalizedAcuantCaptureFailureMessage(error, code), }); } + console.log('acuant-capture', isMobile, hasCapture, allowUpload); return (
diff --git a/config/application.yml.default b/config/application.yml.default index 4a1c07eb8aa..23472b32e4c 100644 --- a/config/application.yml.default +++ b/config/application.yml.default @@ -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}' @@ -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"]' @@ -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: ''