Payments - Generic error message appears when deleting bank card
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Navigate to new staging.
- Open the Payment Page from Settings => Payments.
- Select Delete option for the bank card added
Expected Result:
User is able to delete any payment method
Actual Result:
Error message "oops...something went wrong and your request could not be completed. Please try again later". is displayed when try to delete CC.
Workaround:
Unknown
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: v1.1.46-0 Reproducible in staging?: y Reproducible in production?: y Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/160208501-12e5f519-e80d-4371-bef8-250d8c9162c6.mp4

Expensify/Expensify Issue URL: Issue reported by: Applause Slack conversation:
Triggered auto assignment to @bondydaa (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
hmm this is probably internal since it seems something changed with the API and is breaking if it's happening on production too.
Logs for the error: https://www.expensify.com/_devportal/tools/logSearch/#query=request_id:(%226f1acb5cbd3b2a21-DEN%22)+AND+timestamp:[2022-03-25T20:38:35.681Z+TO+2022-03-25T22:38:35.681Z]&index=logs_expensify-015986
Thanks for finding the logs, @aldo-expensify!
The error 401 Cannot delete billing cards is expected. I think we'll just need to catch the exception on NewDot and show a better error message to the user here. cc: @stitesExpensify
Yep makes sense to me. Maybe we should make a PR like this that covers all error cases and not just 401?
Thanks, @stitesExpensify! Of the two errors that markAsDeleted throws, I think 401 Cannot delete billing cards is the only one that we should worry about?
Making this a first pick! We'll need to:
- Get the error message we will show to the user (use the
Waiting for copylabel) - Get the Spanish translation for the message on Slack via #espanol
- Catch the exception on NewDot here and show the new error message
Assigning it to myself as I am just getting started with the new Dot. Thanks
401 Cannot delete billing cards is the only one that we should worry about?
Yep you're right!
Triggered auto assignment to @zsgreenwald (Waiting for copy), see https://stackoverflow.com/c/expensify/questions/7025/ for more details.
Hi Zach could you please share a well-formatted error message that we can show to the user for this issue. Thanks
@zsgreenwald, @techievivek Whoops! This issue is 2 days overdue. Let's get this updated quick!
Triggered auto assignment to @ryanschaffer (Waiting for copy), see https://stackoverflow.com/c/expensify/questions/7025/ for more details.
Removing Ryan, and pulling myself back in. Just to summarize, this error occurs when a user tries to delete a payment method, although they should be able to do that either way. What's a scenario where the user wouldn't be able to delete a payment method?
I feel like "Oops...something went wrong and your request could not be completed. Please try again later". is just fine, but I'll gut check this with others on the Copy side to confirm.
Thanks, @zsgreenwald!
What's a scenario where the user wouldn't be able to delete a payment method?
This particular scenario is when a user tries to delete a billing card. We currently throw an error from the backend and show the user a generic error but would like to display a more clear error message.
I'd suggest something like this:
"Oops! Something went wrong. Our team is on it, but please contact Concierge if you have any questions!"
This way there's direct action to contact Concierge in case they have any questions. Thoughts?
@zsgreenwald In general, I think we've tried to move away from generic errors as much as possible so that they can address the issue immediately vs add more support volume.
@MariaHCD To confirm that i'm understanding this particular issue correctly though, this error is showing up being we specifically don't allow users to delete billing cards, right? I know its clunky to go back and forth but would something like this work in allowing them to resolve the issue?
You cannot remove this payment method because it is currently set up as your default billing card. Please change your billing card details here before trying again.
@sylveawong Yes this get shown when one tries to delete billing card.
hrmm but actually, if they update with a new billing card, the card should be removed all together. This should remove it from showing up in newdot as well, correct? If that's the case, we can update the copy to tell them to remove the card by changing billing (vs "change billing before trying again")
You cannot remove this payment method because it is currently set up as your default billing card. Please change your billing card details here before trying again.
Yeah I like the direction you took here. Maybe to shorten it:
You cannot remove an active billing card. Please change your billing card details here before trying again.
Thoughts @sylveawong ?
@zsgreenwald
You cannot remove an active billing card. Please change your billing card details here before trying again.
This one looks useful but currently growl doesn't support listening to onclick events so not sure we can add a link.