Skip to content

Enhance load-error event handling for ZuoraSimple Component

What does this MR do and why?

Improves load-error event handling for Zuora component

Resolves #362468 (closed)

Screenshots or screen recordings

Scenario Before After
[Identity verification] Zuora script load failure Screenshot_2022-11-22_at_12.17.46_PM Screenshot_2022-11-22_at_12.19.38_PM
[Identity verification] Zuora configuration issue Screenshot_2022-11-22_at_3.02.47_PM Screenshot_2022-11-22_at_12.09.56_PM
[Account validation] Zuora script load failure Screenshot_2022-11-22_at_12.17.03_PM Screenshot_2022-11-22_at_12.19.16_PM
[Account validation] Zuora configuration issue Screenshot_2022-11-22_at_3.02.52_PM Screenshot_2022-11-22_at_12.13.00_PM
Identity verification Account validation
Successful load (as before) Screenshot_2022-11-22_at_12.09.26_PM

How to set up and validate locally

Identity verification

  1. Ensure that you have a running CustomersDot installation locally and Zuora is set up to use GL.com CC Validation_registration hosted page with the correct callback to your local GDK instance

  2. Enable arkose_labs_signup_challenge feature. This feature is responsible for interfacing with Arkose Labs to assign a risk_band for new users.

    $ rails console
    > Feature.enable(:arkose_labs_signup_challenge)
    > ApplicationSetting.first.update({ arkose_labs_public_api_key: '****', arkose_labs_private_api_key: '****', arkose_labs_namespace: 'client' })

    Credentials are available in GitLab 1Password Engineering Vault

  3. Set require_admin_approval_after_user_signup to false so user can sign in without needing admin approval

    $ rails console
    > ApplicationSetting.first.update(require_admin_approval_after_user_signup: false)
  4. Enable feature flags for identity verification

    $ rails console
    > Feature.enable(:identity_verification)
    > Feature.enable(:identity_verification_credit_card)
  5. Sign up for a new account. After, you should be redirected to the Identity Verification page (http://localhost:3000/users/identity_verification)

  6. Update the user's (the same user you created previously) risk band data to have 'High' value

    $ rails console
    > u = User.last
    > risk_band = u.custom_attributes.by_key('arkose_risk_band').first
    > risk_band.update(value: 'High')
  7. Refresh the Identity Verification page

Account validation:

Follow these steps to setup and verify locally

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Angelo Gulina

Merge request reports

Loading