diff --git a/app/assets/images/idv/interstitial_icons.svg b/app/assets/images/idv/interstitial_icons.svg new file mode 100644 index 00000000000..d3c03fe6115 --- /dev/null +++ b/app/assets/images/idv/interstitial_icons.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/controllers/idv/hybrid_mobile/socure/document_capture_controller.rb b/app/controllers/idv/hybrid_mobile/socure/document_capture_controller.rb index b4e1fb93257..7f1c0a53b5a 100644 --- a/app/controllers/idv/hybrid_mobile/socure/document_capture_controller.rb +++ b/app/controllers/idv/hybrid_mobile/socure/document_capture_controller.rb @@ -29,6 +29,9 @@ def show Funnel::DocAuth::RegisterStep.new(document_capture_user.id, sp_session[:issuer]) .call('hybrid_mobile_socure_document_capture', :view, true) + @selfie_check_required = resolved_authn_context_result.facial_match? + @hybrid_flow = true + if document_capture_session.socure_docv_capture_app_url.present? @url = document_capture_session.socure_docv_capture_app_url return diff --git a/app/controllers/idv/socure/document_capture_controller.rb b/app/controllers/idv/socure/document_capture_controller.rb index 1abfb9606dc..144e9d01e14 100644 --- a/app/controllers/idv/socure/document_capture_controller.rb +++ b/app/controllers/idv/socure/document_capture_controller.rb @@ -28,6 +28,9 @@ def show Funnel::DocAuth::RegisterStep.new(current_user.id, sp_session[:issuer]) .call('socure_document_capture', :view, true) + @selfie_check_required = resolved_authn_context_result.facial_match? + @hybrid_flow = false + if document_capture_session.socure_docv_capture_app_url.present? @url = document_capture_session.socure_docv_capture_app_url return diff --git a/app/views/idv/shared/_doc_capture_interstitial.html.erb b/app/views/idv/shared/_doc_capture_interstitial.html.erb index 3175374accf..eda8461a3c1 100644 --- a/app/views/idv/shared/_doc_capture_interstitial.html.erb +++ b/app/views/idv/shared/_doc_capture_interstitial.html.erb @@ -8,18 +8,32 @@ ) %> <% end %> +
+ <%= image_tag asset_url('idv/interstitial_icons.svg'), width: 207, height: 88, alt: '', class: 'display-block margin-x-auto' %> +
+ <%= render PageHeadingComponent.new do %> - <%= t('doc_auth.headings.verify_with_phone') %> + <%= t('doc_auth.headings.document_capture') %> <% end %> -<% if decorated_sp_session.sp_name.present? %> -

- <%= t('doc_auth.info.login_access_sp', app_name: APP_NAME, sp_name: decorated_sp_session.sp_name) %> -

+<% if @hybrid_flow %> + <% if decorated_sp_session.sp_name.present? %> +

+ <%= t('doc_auth.info.socure_hybrid_flow_html', app_name: APP_NAME, sp_name: decorated_sp_session.sp_name) %> +

+ <% else %> +

+ <%= t('doc_auth.info.socure_hybrid_flow_html', app_name: APP_NAME, sp_name: APP_NAME) %> +

+ <% end %> <% end %> + +

+ <%= t('doc_auth.info.socure_basic_idv', app_name: APP_NAME) %> +

- <%= t('doc_auth.info.add_id_consent_with_phone', app_name: APP_NAME) %> + <%= t('doc_auth.info.socure_ial2_idv_finish', app_name: APP_NAME) %>

-<%= link_to t('forms.buttons.continue'), @url, class: 'usa-button usa-button--big usa-button--wide' %> -<%= render 'idv/doc_auth/cancel', step: 'verify_id' %> +<%= link_to t('forms.buttons.continue'), @url, class: 'usa-button usa-button--big usa-button--wide margin-top-4 margin-bottom-4' %> +<%= render 'idv/doc_auth/cancel', step: 'verify_id' %> \ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index 3cb574c2fac..b3b223b32ba 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -634,7 +634,6 @@ doc_auth.headings.verify_at_post_office: Go to a participating Post Office doc_auth.headings.verify_identity: Verify your identity doc_auth.headings.verify_online: Verify your identity online doc_auth.headings.verify_online_mobile: Verify your identity online using your phone -doc_auth.headings.verify_with_phone: Verify your identity using your phone doc_auth.headings.welcome: Let’s verify your identity for %{sp_name} doc_auth.hybrid_flow_warning.explanation_html: You’re using %{app_name} to verify your identity for access to %{service_provider_name} and its services. doc_auth.hybrid_flow_warning.explanation_non_sp_html: You’re using %{app_name} to verify your identity. @@ -691,6 +690,9 @@ doc_auth.info.selfie_capture.action.close: close doc_auth.info.selfie_capture.action.retake: retake doc_auth.info.selfie_capture.action.submit: Photo taken. Submit photo. doc_auth.info.selfie_capture.intro: Camera is on, ready for selfie +doc_auth.info.socure_basic_idv: '%{app_name} will verify your ID using a trusted service provider, Socure. When you continue, you’ll be asked to take photos of your ID with Socure.' +doc_auth.info.socure_hybrid_flow_html: You are using %{app_name} to verify your identity and access %{sp_name}. +doc_auth.info.socure_ial2_idv_finish: When you are done taking photos, %{app_name} will finish verifying your information. doc_auth.info.ssn: We need your Social Security number to verify your name, date of birth and address. doc_auth.info.stepping_up_html: Verify your identity again to access this service. %{link_html} doc_auth.info.upload_from_computer: Don’t have a phone? Upload photos of your ID from this computer. diff --git a/config/locales/es.yml b/config/locales/es.yml index 68dc37ac1c7..3b1b80df82f 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -645,7 +645,6 @@ doc_auth.headings.verify_at_post_office: Vaya a una oficina de correos participa doc_auth.headings.verify_identity: Verifique su identidad doc_auth.headings.verify_online: Verifique su identidad en línea doc_auth.headings.verify_online_mobile: Verifique su identidad en línea con su teléfono -doc_auth.headings.verify_with_phone: Verifique su identidad con su teléfono doc_auth.headings.welcome: Verifiquemos su identidad para %{sp_name} doc_auth.hybrid_flow_warning.explanation_html: Está utilizando %{app_name} para verificar su identidad y acceder a %{service_provider_name} y sus servicios. doc_auth.hybrid_flow_warning.explanation_non_sp_html: Está utilizando %{app_name} para verificar su identidad. @@ -702,6 +701,9 @@ doc_auth.info.selfie_capture.action.close: Cerrar doc_auth.info.selfie_capture.action.retake: Volver a tomar foto doc_auth.info.selfie_capture.action.submit: Se tomó la foto. Enviar la foto. doc_auth.info.selfie_capture.intro: Cámara encendida, lista para tomar selfie +doc_auth.info.socure_basic_idv: '%{app_name} verificará su identificación por medio de Socure, un proveedor de servicios de confianza. Al continuar, se le pedirá que tome las fotografías de su identificación con Socure.' +doc_auth.info.socure_hybrid_flow_html: Está usando %{app_name} para verificar su identidad y acceder a %{sp_name}. +doc_auth.info.socure_ial2_idv_finish: Cuando acabe de tomar las fotos, %{app_name} terminará de verificar su información. doc_auth.info.ssn: Necesitamos su número de Seguro Social para verificar su nombre, fecha de nacimiento y dirección. doc_auth.info.stepping_up_html: Verifique de nuevo su identidad para acceder a este servicio. %{link_html} doc_auth.info.upload_from_computer: '¿No tiene un teléfono? Cargue fotos de su identificación desde esta computadora.' diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 3bcbe9fa95d..96d7220feb3 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -634,7 +634,6 @@ doc_auth.headings.verify_at_post_office: Vous rendre à un bureau de poste parti doc_auth.headings.verify_identity: Confirmer votre identité doc_auth.headings.verify_online: Confirmer votre identité en ligne doc_auth.headings.verify_online_mobile: Confirmer votre identité en ligne à l’aide de votre téléphone -doc_auth.headings.verify_with_phone: Confirmer votre identité à l’aide de votre téléphone doc_auth.headings.welcome: Vérifions votre identité auprès de %{sp_name} doc_auth.hybrid_flow_warning.explanation_html: Vous utilisez %{app_name} pour confirmer votre identité et accéder à %{service_provider_name} et à ses services. doc_auth.hybrid_flow_warning.explanation_non_sp_html: Vous utilisez %{app_name} pour confirmer votre identité. @@ -691,6 +690,9 @@ doc_auth.info.selfie_capture.action.close: fermer doc_auth.info.selfie_capture.action.retake: nouvelle photo doc_auth.info.selfie_capture.action.submit: Photo prise. Envoyer la photo. doc_auth.info.selfie_capture.intro: Caméra prête à prendre la photo +doc_auth.info.socure_basic_idv: '%{app_name} vérifiera votre pièce d’identité en faisant appel à Socure, un prestataire de confiance. Il va vous être demandé de prendre des photos de votre pièce d’identité avec Socure.' +doc_auth.info.socure_hybrid_flow_html: Vous utilisez %{app_name} pour vérifier votre identité et accéder à %{sp_name}. +doc_auth.info.socure_ial2_idv_finish: Quand vous aurez terminé de prendre les photos, %{app_name} finira de vérifier vos renseignements. doc_auth.info.ssn: Nous avons besoin de votre numéro de sécurité sociale pour confirmer vos nom, date de naissance et adresse. doc_auth.info.stepping_up_html: Veuillez confirmer à nouveau votre identité pour accéder à ce service. %{link_html} doc_auth.info.upload_from_computer: Vous n’avez pas de téléphone ? Téléchargez les photos de votre pièce d’identité depuis cet ordinateur. diff --git a/config/locales/zh.yml b/config/locales/zh.yml index c65bd42984d..4a8ed4179c2 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -645,7 +645,6 @@ doc_auth.headings.verify_at_post_office: 到一个参与本项目的邮局去 doc_auth.headings.verify_identity: 验证你的身份 doc_auth.headings.verify_online: 在网上验证身份 doc_auth.headings.verify_online_mobile: 使用手机在网上验证你的身份 -doc_auth.headings.verify_with_phone: 使用你的电话来验证你的身份 doc_auth.headings.welcome: 现在我们来为%{sp_name}验证你的身份 doc_auth.hybrid_flow_warning.explanation_html: 你在使用 %{app_name} 验证身份以访问 %{service_provider_name} 及其服务。 doc_auth.hybrid_flow_warning.explanation_non_sp_html: 你在使用 %{app_name} 验证身份。 @@ -702,6 +701,9 @@ doc_auth.info.selfie_capture.action.close: 关闭 doc_auth.info.selfie_capture.action.retake: 重拍 doc_auth.info.selfie_capture.action.submit: 照片拍摄完毕。提交照片。 doc_auth.info.selfie_capture.intro: 相机已打开,准备自拍 +doc_auth.info.socure_basic_idv: '%{app_name}会使用一家受信任的服务提供商 - Socure – 来验证你的ID。如果你继续,系统会要求你使用 Socure 拍摄你的ID的照片。' +doc_auth.info.socure_hybrid_flow_html: 你正在使用 %{app_name} 验证你的身份并访问 %{sp_name}。 +doc_auth.info.socure_ial2_idv_finish: 拍完照片后,%{app_name} 会完成你的信息验证。 doc_auth.info.ssn: 我们需要你的社会保障号码来证实你的姓名、生日和地址。 doc_auth.info.stepping_up_html: 再次验证你的身份以使用这项服务。 %{link_html} doc_auth.info.upload_from_computer: 没有手机?从该电脑上传你身份证件的照片。 diff --git a/spec/features/idv/doc_auth/socure_document_capture_spec.rb b/spec/features/idv/doc_auth/socure_document_capture_spec.rb index 53d1cf4f9bf..b658323d8eb 100644 --- a/spec/features/idv/doc_auth/socure_document_capture_spec.rb +++ b/spec/features/idv/doc_auth/socure_document_capture_spec.rb @@ -116,7 +116,7 @@ # Try Socure again click_on t('idv.failure.button.warning') expect(page).to have_current_path(idv_socure_document_capture_path) - expect(page).to have_content(t('doc_auth.headings.verify_with_phone')) + expect(page).to have_content(t('doc_auth.headings.document_capture')) end end diff --git a/spec/features/idv/hybrid_mobile/hybrid_socure_mobile_spec.rb b/spec/features/idv/hybrid_mobile/hybrid_socure_mobile_spec.rb index 171d8a8d375..865e56ff828 100644 --- a/spec/features/idv/hybrid_mobile/hybrid_socure_mobile_spec.rb +++ b/spec/features/idv/hybrid_mobile/hybrid_socure_mobile_spec.rb @@ -242,7 +242,7 @@ # Try Socure again click_on t('idv.failure.button.warning') expect(page).to have_current_path(idv_hybrid_mobile_socure_document_capture_path) - expect(page).to have_content(t('doc_auth.headings.verify_with_phone')) + expect(page).to have_content(t('doc_auth.headings.document_capture')) end end end