-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle errors during in-person enrollment #2345
Comments
@indexing - it looks like we are missing a Miro mock-up for the "server error" case. |
Getting back to this now! |
Hey @indexing -- thanks for adding the server error mockup to Miro!
I was mislead by the code and template name being |
@angela-tran Yes! Ah...naming. I was thinking the "user enrollment error" view replaced the one in the screenshot. Thanks for the confirmation. |
A system error is when something goes wrong on the transit processor's side, which translates to us getting back a 500 error.
A server error is when we probably did something to make the API request fail, which translates to us getting back a 400 error or some other Exception.
A re-enrollment error is simply when the user is trying to re-enroll a card and are not yet in the window for re-enrolling it.
Lastly, if all systems are working but for some reason the transit processor system said that verification of the card failed,
we ask the user to retrythis is a user enrollment error.This ticket requires a refactor towas done as a part of #2244benefits.enrollment.views.token
to extract logic for calling the API out to theenrollment
module.Acceptance Criteria
The
in_person/enrollment/system_error.html
template is implemented and shown for:onError
callback on the transit processor Javascript functionThe
in_person/enrollment/server_error.html
template is implemented and shown for:onError
callback on the transit processor Javascript functionThe
in_person/enrollment/reenrollment_error.html
template is implemented and shown when:enroll
function returns aStatus
ofREENROLLMENT_ERROR
The
in_person/enrollment/retry.html
template is implemented and shown when:onVerificationFailure
callback is invokedAdditional context
#2066 has more history / context on distinguishing out enrollment errors.
The text was updated successfully, but these errors were encountered: